Form Field Appear on Value Entered

I am running Coldfusion 9 and building a website using Dreamweaver from CS5.
Is there a way to make a form field appear only if a certain value was entered into the previous form field? If so how? For example I am creating a registration page and one of the form fields is "Property Type" where the user can choose from "Residential, Commercial, Other" from a drop down menu and if the user chooses "Commercial" I want an additional field to pop up for the user to enter a value in "Company Name"??? Thanks for your help

WolfShade,
My apologizes for posting this question in the wrong forum. Since I have already started the discussion here I will ask you my question here still. I put in the lines of code you suggested however when I go to the drop down list and select "Commercial" no text input box appears for the Company Name field. If you have a min I will post my code below. Your help is very much appreciated. I should let you know I also tried adding the on change to the actual option tag for commerical i.e <option onChange...>Commercial</option> and still did not appear. I put the work area in red text hope it helps.
<cfif IsDefined("FORM.username")>
  <cfquery name="MM_search" datasource="Access">
    SELECT Logininfo.Username FROM Logininfo WHERE Logininfo.Username=<cfqueryparam value="#FORM.username#" cfsqltype="cf_sql_clob" maxlength="50">
  </cfquery>
  <cfif MM_search.RecordCount GTE 1>
    <cflocation url="taken.cfm?requsername=#FORM.username#" addtoken="no">
  </cfif>
</cfif>
<cfset CurrentPage=GetFileFromPath(GetBaseTemplatePath())>
<cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "customer">
  <cfif IsDefined('form.propertytype') and len(form.propertytype) NEQ 0>
  <cfset #CustomerTypeRefFullName#=form.propertytype/>
  </cfif>
  <cfif IsDefined('form.companyname') and len(form.companyname) NEQ 0>
  <cfset #CompanyName#=form.companyname/>
  </cfif>
  <cfif IsDefined('form.salutation') and len(form.salutation) NEQ 0>
  <cfset #Salutation#=form.salutation/>
  </cfif>
  <cfif IsDefined('form.firstname') and len(form.firstname) NEQ 0>
<cfset #FirstName#=form.firstname/>
  </cfif>
    <cfif IsDefined('form.lastname') and len(form.lastname) NEQ 0>
    <cfset #LastName#=form.lastname/>
    </cfif>
  <cfset Name=#FirstName#&''&#LastName#/>
  <cfset BillAddressAddr1=#Salutation#&' '&#FirstName#&''&#LastName#/>
    <cfif IsDefined('form.streetaddress') and len(form.streetaddress) NEQ 0>
    <cfset #BillAddressAddr2#=form.streetaddress/>
  </cfif>
    <cfif IsDefined('form.city') and len(form.city) NEQ 0>
    <cfset #BillAddressCity#=form.city/>
    </cfif>
    <cfif IsDefined('form.state') and len(form.state) NEQ 0>
    <cfset #BillAddressState#=form.state/>
    </cfif>
  <cfif IsDefined('form.zipcode') and len(form.zipcode) NEQ 0>
    <cfset #BillAddressPostalCode#=form.zipcode/>
    </cfif>
<cfset Contact=#FirstName#&''&#LastName#/>
  <cfif IsDefined('form.dayphone') and len(form.dayphone) NEQ 0>
    <cfset #Phone#=form.dayphone/>
  </cfif>
  <cfif IsDefined('form.eveningphone') and len(form.eveningphone) NEQ 0>
    <cfset #AltPhone#=form.eveningphone/>
  </cfif>
  <cfif IsDefined('form.email') and len(form.email) NEQ 0>
    <cfset #Email#=form.email/>
  </cfif>
<cfquery datasource="QBs">  
    INSERT INTO Customer (CustomerTypeRefFullName, CompanyName, Salutation, FirstName, LastName, Name, BillAddressAddr1, BillAddressAddr2, BillAddressCity, BillAddressState, BillAddressPostalCode, Contact, Phone, AltPhone, Email)
VALUES (
<cfqueryparam value="#CustomerTypeRefFullName#" cfsqltype="cf_sql_varchar" maxlength="41"/>,
<cfqueryparam value="#CompanyName#" cfsqltype="cf_sql_varchar" maxlength="41"/>,
<cfqueryparam value="#Salutation#" cfsqltype="cf_sql_varchar" maxlength="15"/>,
<cfqueryparam value="#FirstName#" cfsqltype="cf_sql_varchar" maxlength="41"/>,
<cfqueryparam value="#LastName#" cfsqltype="cf_sql_varchar" maxlength="41"/>,
<cfqueryparam value="#Name#" cfsqltype="cf_sql_varchar" maxlength="50"/>,
<cfqueryparam value="#BillAddressAddr1#" cfsqltype="cf_sql_varchar" maxlength="50"/>,
<cfqueryparam value="#BillAddressAddr2#" cfsqltype="cf_sql_varchar" maxlength="50"/>,
<cfqueryparam value="#BillAddressCity#" cfsqltype="cf_sql_varchar" maxlength="50"/>,
<cfqueryparam value="#BillAddressState#" cfsqltype="cf_sql_varchar" maxlength="25"/>,
<cfqueryparam value="#BillAddressPostalCode#" cfsqltype="cf_sql_varchar" maxlength="13"/>,
<cfqueryparam value="#Contact#" cfsqltype="cf_sql_varchar" maxlength="41"/>,
<cfqueryparam value="#Phone#" cfsqltype="cf_sql_varchar" maxlength="15"/>,
<cfqueryparam value="#AltPhone#" cfsqltype="cf_sql_varchar" maxlength="15"/>,
<cfqueryparam value="#Email#" cfsqltype="cf_sql_carchar" maxlength="75"/>
  </cfquery>
<cfif IsDefined('form.firstname') and len(form.firstname) NEQ 0>
<cfset #FirstName#=form.firstname/>
</cfif>
<cfif IsDefined('form.lastname') and len(form.lastname) NEQ 0>
<cfset #LastName#=form.lastname/>
</cfif>
<cfif IsDefined('form.username') and len(form.username) NEQ 0>
<cfset #Username#=form.username/>
</cfif>
<cfif IsDefined('form.password') and len(form.password) NEQ 0>
<cfset #Password#=form.password/>
</cfif>
<cfquery datasource="Access">
INSERT INTO Logininfo (FirstName, LastName, Username, Password)
VALUES (
<cfqueryparam value="#FirstName#" cfsqltype="cf_sql_varchar" maxlength="41"/>,
<cfqueryparam value="#LastName#" cfsqltype="cf_sql_varchar" maxlength="41"/>,
<cfqueryparam value="#Username#" cfsqltype="cf_sql_varchar" maxlength="41"/>,
<cfqueryparam value="#Password#" cfsqltype="cf_sql_varchar" maxlength="41"/>
</cfquery>
  <cflocation url="login.cfm">
</cfif>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/Main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- InstanceBeginEditable name="title" -->
<title>TS Landscaping LLC</title>
<!-- InstanceEndEditable -->
<link href="styles/Main.css" rel="stylesheet" type="text/css">
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" -->
<script type="text/javascript">function showHideInput(ddValue,txtFld) {
  if(toLowerCase(ddValue) == "commercial") {
     txtFld.style.display = '';
  else {
     txtFld.style.display = 'none';
     txtFld.value = '';
</script>
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationPassword.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationPassword.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css">
<link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css">
<!-- InstanceEndEditable --></head>
<body>
<div id="Container">
  <div id="header"><img src="Images/Website-Image.gif" width="393" height="217" alt="TS Landscaping Logo and Name of company"></div>
  <div id="menu_bar1">
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a class="MenuBarItemSubmenu" href="index.html">Home</a>
        <ul>
          <li><a href="#">Item 1.1</a></li>
          <li><a href="#">Item 1.2</a></li>
          <li><a href="#">Item 1.3</a></li>
        </ul>
      </li>
      <li><a href="about_us.html">About Us</a></li>
      <li><a href="#">Services</a></li>
      <li><a class="MenuBarItemSubmenu" href="#">User Account</a>
        <ul>
          <li><a href="login.cfm">Login</a></li>
          <li><a href="registration_page.cfm">Register</a></li>
          <li><a href="members_page.cfm">Customer Page</a></li>
        </ul>
      </li>
      <li><a href="contact_us.html">Contact Us</a></li>
    </ul>
  </div>
  <div id="Main">
    <div id="side_bar"><!-- InstanceBeginEditable name="sidebar" -->Content for  id "side_bar" Goes Here<!-- InstanceEndEditable --></div>
    <div id="main_body"><!-- InstanceBeginEditable name="mainbody" -->
<h1>Welcome to our sign up Page!</h1>
<p>Please fill out the form below to register with out site and gain access to our members account page.</p>
<form name="customer" action="<cfoutput>#CurrentPage#</cfoutput>" method="POST" id="customer"><table width="auto" border="0" align="center">
  <tr>
<td><label for="propertytype">
  <div align="right">Property Type:</div>
</label></td>
    <td><select onChange="showHideInput(this.options[this.selectedIndex].value,'companyname');" name="propertytype" id="propertytype" accesskey="n" tabindex="02">
      <option selected>Residential</option>
      <option >Commercial</option>
      <option>Other</option>
    </select></td>
  </tr>
  <tr>
  <td><label for="companyname">
    <div align="right">Company Name:</div>
  </label></td>
    <td><span id="sprytextfield11">
      <input type="text" name="companyname" id="companyname" accesskey="n" tabindex="03" style="display:none;">
</span></td>
   </tr>
  <tr>
    <td><label for="salutation">
      <div align="right">Salutation:
        </label>
      </div></td>
    <td><select name="salutation" id="salutation" accesskey="n" tabindex="04">
      <option selected>Mr.</option>
      <option>Mrs.</option>
      <option>Ms.</option>
    </select></td>
  </tr>
  <tr>
    <td><label for="firstname">
      <div align="right">First Name:
        </label>
      </div></td>
    <td><span id="sprytextfield1">
      <input type="text" name="firstname" id="firstname" accesskey="n" tabindex="05" />
      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
  </tr>
  <tr>
    <td><label for="lastname">
      <div align="right">Last Name:
        </label>
      </div></td>
    <td><span id="sprytextfield2">
      <input type="text" name="lastname" id="lastname" accesskey="n" tabindex="10" />
      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
  </tr>
  <tr>
    <td><label for="streetaddress">
      <div align="right">Street Address
        </label>
      </div></td>
    <td><span id="sprytextfield3">
      <input type="text" name="streetaddress" id="streetaddress" accesskey="n" tabindex="15" />
      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
  </tr>
  <tr>
    <td><label for="city">
      <div align="right">City:
        </label>
      </div></td>
    <td><span id="sprytextfield4">
      <input type="text" name="city" id="city" accesskey="n" tabindex="20" />
      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
  </tr>
  <tr>
    <td><label for="state">
      <div align="right">State:
        </label>
      </div></td>
    <td><span id="sprytextfield5">
      <input type="text" name="state" id="state" accesskey="n" tabindex="25" />
      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
  </tr>
  <tr>
    <td><label for="zipcode">
      <div align="right">Zipcode:
        </label>
      </div></td>
    <td><span id="sprytextfield6">
      <input type="text" name="zipcode" id="zipcode" accesskey="n" tabindex="30" />
      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
  </tr>
    <tr>
    <td><label for="dayphone">
      <div align="right">Day Phone:</div>
    </label></td>
    <td><span id="sprytextfield8">
      <input type="text" name="dayphone" id="dayphone" accesskey="n" tabindex="31">
</span></td>
    </tr>
      <tr>
    <td><label for="eveningphone">
      <div align="right">Evening Phone:</div>
    </label></td>
    <td><span id="sprytextfield9">
      <input type="text" name="eveningphone" id="eveningphone" accesskey="n" tabindex="32">
</span></td>
    </tr>
      <tr>
    <td><label for="email">
      <div align="right">Email:</div>
    </label></td>
    <td><span id="sprytextfield10">
      <input type="text" name="email" id="email" accesskey="n" tabindex="33">
      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
    </tr>
  <tr>
    <td><label for="username">
      <div align="right">Username:
        </label>
      </div></td>
    <td><span id="sprytextfield7">
      <input type="text" name="username" id="username" accesskey="n" tabindex="40" />
      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
  </tr>
  <tr>
    <td><label for="password">
      <div align="right">Password:
        </label>
      </div></td>
    <td><span id="sprypassword1">
      <input type="password" name="password" id="password" accesskey="n" tabindex="45" />
      <span class="passwordRequiredMsg">A value is required.</span></span></td>
  </tr>
  <tr>
    <td><label for="passwordconfirm">
      <div align="right">Confirm Password
        </label>
      </div></td>
    <td><span id="spryconfirm1">
      <input type="password" name="passwordconfirm" id="passwordconfirm" accesskey="n" tabindex="50">
      <span class="confirmRequiredMsg">A value is required.</span><span class="confirmInvalidMsg">The values don't match.</span></span></td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">
      <input type="submit" name="submit" id="submit" value="Register" accesskey="n" tabindex="50" />
    </div></td>
    </tr>
</table>
  <input type="hidden" name="MM_InsertRecord" value="customer" />
</form>
<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7");
var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1");
var spryconfirm1 = new Spry.Widget.ValidationConfirm("spryconfirm1", "password");
var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8", "none", {isRequired:false});
var sprytextfield9 = new Spry.Widget.ValidationTextField("sprytextfield9", "none", {isRequired:false});
var sprytextfield10 = new Spry.Widget.ValidationTextField("sprytextfield10");
var sprytextfield11 = new Spry.Widget.ValidationTextField("sprytextfield11", "none", {isRequired:false});
</script><!-- InstanceEndEditable --></div>
  </div>
  <div id="footer">
    <p>Home | About Us | Site Map </p>
    <p>&copy; TS Landscaping LLC 2010</p>
  </div>
</div>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
</body>
<!-- InstanceEnd --></html>

Similar Messages

  • FormsCentral - design form : Initialize form field with default value

    Hello,
              My customer asks me to initialize text fields with default values. Example , Name , email , phone number etc to be displayed by default till it is overwritten by values entered. Could you please guide me how to achieve this ?
    Many Thanks,
    Sree

    Hi,
    see Re: sequencing problem-Forms
    Regards Michael

  • Form fields appear normal on my computer, but are too large on client's computer

    I recently created a fillable PDF using Acrobat Pro for a client. I have done this many times before, and never had any issues with formatting.  On my computer, the fields appear perfect, but on the client's computer they are too large and obscure the surrounding text.  Please see the first screenshot for reference. Notice the large white form field on the left side.  He has viewed the document both on a Mac (in Preview) and on a PC (Acrobat Reader) and had the same problem.   The following is a screenshot of the same file on my computer:
    On my computer, the name field appears to fill normally.  Does anyone have any idea why this is happening, and what I can do to fix it?
    Thanks!
    Jeanne

    That person is using Preview and not Adobe Reader or Acrobat. Preview's support for PDF forms is dismal and it should not be used. It actually corrupts PDF forms (and other PDFs) in a number of ways, so that particular file should not be used again. If they don't want to install Reader, there's not much you can do.

  • Trying to dynamically output form fields returns URL values

    Hello,
    If there is a better way to go about this (which is quite likely), please let me know how to go about it.
    I'm working on some code that is supposed to dynamically set the form variables as regular variables so that we can be lazy and not have to refer to the variable with form.somevariable name.
    That part works perfectly.  Until I start testing for URL conflicts in which a URL variable has the same name.  For instance. . .
    I have a form that passes two variables; FirstName and LastName.  If I hit the page, the form shows up, I input a first and last name and click submit.  The code works perfectly.
    However, if I have URL variables with the same names, the code reports the url variable values instead of the form values.
    Some sample values;
    url.FirstName = Joe
    url.LastName = Black
    form.FirstName = Steve
    form.LastName = White
    My code that exposes the form variable will correctly find the form field names, but then when I 'evaluate' the value of the given form field, it will return the value of the URL variable of the same name rather than the form variable.
    What I am really wanting (as I described briefly up above) is to have code that automatically converts client, URL and Form variables into 'regular variables' so that you don't have to write lots of extra code grabbing them later on.  Frameworks like CFWHEELS and ColdBox do this by default, but at the company I work out, we aren't using any of them.  I need it to expose the URL variables, but give presidence to form variables if they have the same name, because they are likely to be intended to do an update or such.
    The code follows  Feel free to ignore the code for the URL and client variables if you wish as they don't directly affect how the form code works, I have tested with them commented out and I get the same result.  I provided all of it to give a more complete idea of what I have been toying with so far.  Please note that I don't normally use 'evaluate'.  There is probably a better way to go, but I don't know what it is.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    <!--- Create a form so that we can post some form variables --->
    <form action="" method="post">
        First Name <input type="text" name="FirstName" />
        Last Name <input type="text" name="lastName" />
        <input type="submit" />
    </form>
    <!--- Set a variable to hold the list of URL variable names --->
    <cfset paramsurl = structKeyList(url)>
    <cfoutput>
    <br />
    URL variables:
    <!--- Loop through the list of url variables and then dynamically set a new variable to be equal to whatever is held by it --->
        <cfloop index="i" list="#paramsurl#">
            <cfset myDynVar = Evaluate(i)>
            <!--- Let's output the dynamically created variable as a test --->
            #i# = #myDynVar#<br />
        </cfloop>
    </cfoutput>
    <!--- If form fields exist --->
    <cfif isdefined("Form.FieldNames")>
        <cfoutput>
            <b>Field Names:</b> #Form.FieldNames#
            <p>
                <b>Field Values:</b><br>
                <cfloop INDEX="TheField" list="#Form.FieldNames#">
                    #TheField# = #Evaluate(TheField)#<br>
                    <cfset TheField = Evaluate(TheField)>
                </cfloop>
            </p>
            Lets try and output the two form fields without using the "form." notation<br>
            FirstName : #FirstName# <br />
            LastName : #LastName#
        </cfoutput>
    </cfif>
    <br />
    The client variables currently available are:<br />
    <cfoutput>
        <cfset nVarCounter = 1>
        <cfloop list="#GetClientVariablesList()#" index="whichClientVar">
            #whichClientVar# : #client[whichClientVar]#<br />
            <cfset whichClientVar = Evaluate(whichClientVar)>
        </cfloop>
    </cfoutput>

    Try this:
    <cfset structAppend( FORM, {
              'alpha' = 'bravo',
              'charlie' = 'delta',
              'echo' = 'foxtrot'
    }, true ) />
    <cfset structAppend( URL, {
              'alpha' = 'zulu',
              'lima' = 'mike',
              'echo' = 'papa'
    }, true ) />
    <!--- List the scopes in ascending order of importance. --->
    <cfdump var="#FORM#" label="FORM scope" />
    <cfdump var="#URL#" label="URL scope" />
    <cfset scopes = "url,form">
    <cfloop list="#scopes#" index="i">
              <cfloop list="#structKeyList( evaluate( i ) )#" index="j">
                        <cfset structInsert( VARIABLES, j, evaluate( i & '["' & j & '"]' ), true ) />
              </cfloop>
    </cfloop>
    <cfdump var="#VARIABLES#" abort="1" label="Combined Variables Scope" />
    What I did is insert 3 key/value pairs into the FORM and URL scope.  I then dumped the scopes to show their structure and values.  Then I defined a variable (scopes) which is a list of the least important scope to the most important.  After that, the loop I do simply goes through the SCOPES, their exisiting key/values and sets them into the VARIABLES scope.  Then, when it moves to the next scope of importance, it simply puts their value into the variables scope as well (overriding in the event it already exists), thus, the scopes defined later in the list override and replace.
    Then I just dump the VARIABLES scope (you'll notice it has the I, J and SCOPES variables in there that I used to create the loop.  If you perform this action in a function, simple make the I, J and SCOPES variables part of the LOCAL scope so they won't be in your VARIABLES scope.

  • How to populate a hidden form field with a value passed from another page

    I'm using PHP/MySQL and DW CS4.
    I am trying to obtain the external key for a table, and include it as a hidden field in a form for a second table.
    The user selects a "need" from a list and is taken to a new page which displays the need selected in the prior page and a form the user can fill out with details of his offer, there should also be a hidden field in this form that contains the index to the needs table, this hidden field holds the external key. Most of the code is working, except for populating the hidden field with the external key. I have proven(by printing it to the screen) that I have obtained the external key and stored it in a variable ($saveNeedId) . What I'm unable to do is assign this variable to the hidden field in the form I'm about to store in a table. Sometimes I get zero and sometimes I get the index to the first need in the table. This ought to be simple but I can't get it to work, I must be missing something obvious - still very new to PHP.
    Here's the code that sets up the variable and prints it to the screen for test purposes
          $saveNeedId = "-1";
              if (isset($_GET['needId'])) {
                $saveNeedId = $_GET['needId'];
                print $saveNeedId;
    Here's the code that sets up the hidden fields in the form, the one I'm trying to set up is the first one, needId
         <input type="hidden" name="needId" value="<?php echo $row_rsNeedsUnmet['needId']; ?>" />
         <input type="hidden" name="offerId" value="" />
         <input type="hidden" name="MM_insert" value="form1" />
    The page where the user sees the list of needs is here www.hollisterairshow.com/weneed.php
    I'd really appreciate sone help with this, I've tried all combinations of double quotes, percent signs and nothing works...sigh.
    Tony

    Here's the code that sets up the variable and prints it to the screen for test purposes
          $saveNeedId = "-1";
              if (isset($_GET['needId'])) {
                $saveNeedId = $_GET['needId'];
                print $saveNeedId;
    Here's the code that sets up the hidden fields in the form, the one I'm trying to set up is the first one, needId
         <input type="hidden" name="needId" value="<?php echo $row_rsNeedsUnmet['needId']; ?>" />
         <input type="hidden" name="offerId" value="" />
         <input type="hidden" name="MM_insert" value="form1" />
    <input type="hidden" name="needId" value="<?php echo $_GET['needId']; ?>" />
    I looked at your page. It looks like you figured it out.

  • Fillable Saveable Form - Fields appear to be blank but aren't

    We have a fillable savable form created with Adobe Acrobat 8 Professional. Sometimes the form emailed back to our office and opened in Reader Version 9 and it the form appears initially to be blank unless you click into the field - you can then see the data. However, you can't print the form with the data displayed. If using Reader version 8, then if you click the highlight button it acts like a toggle switch to view the data in the fields; however you still can't print.
    Any ideas on what is causing this and how we can fix it?

    We are having the same issue, but ALL fields on a large-ish form.  Also this form was widely distributed for email responses - so re-distributing it will be challenge.
    We are using Acrobat 9.10 with livecycle to create/publish. All works well, except that we are getting occasional returns where all data is hidden, unless we 'click' inside the field - then it appears.  If we export data it is empty.
    I cannot see any pattern re: version of acrobat reader or Mac vs. PC that the recipients are using.
    This is a serious issue for us, and any help would be greatly appreciated.
    Dave B.
    Toronto.

  • 1     Unable to retrieve the form values entered by the user from the xpath expression(with or without s

    1.1 Description of the Workflow
    We have designed a Workflow, which has an init form HighLevelQuestionnaire.
    1. The user attempts to start the workflow by submitting this form, which has an XML schema embedded.
    2. When user submits the data, we set workflow variables to fetch data from the init-form and all the values entered by the user are stored in the database.
    3. Based on the values, value of Risk Level is calculated to be either High or Medium, and user is routed to one of the two routes.
    4. The user QPAC is used to show the next form to the user.
    Another form has been designed called AssessRisk in which user is asked to confirm the Risk Level.
    5. At this point, we use Script QPAC to print the values in the log.
    1.2 Problem description
    1. In the Point No. 6 of the workflow, the values are not printed in the log. A blank space is printed instead.
    2. Initially, we embedded the schema in the form. But when values were not printed, we removed the schema. Even then it didnt work.
    1.2.1 User QPAC Specifications
    Properties of user QPAC used in Step 4 of the workflow
    Mappings Tab: -
    Input Variable --- No variable
    Template URL ----- Form11.xdp
    Output Variable ---- myform
    Myform is a form-variable, which has template URL as Form11.xdp
    1.2.2 Script QPAC
    1.2.2.1 With XML Schema embedded
    import com.adobe.workflow.pat.service.*;
    System.out.println("----------- High Level Questions -----------");
    System.out.println("--1- the RiskLevel is: " + patExecContext.getProcessDataStringValue("/process_data/myform/form-data/data/xdp/dataset s/data/RiskLevel/general/Risk_Level") + " @@@@@");
    Note:- Here RiskLevel is the schema root of myform and Risk_Level is the schema variable mapped with textfield on the form
    1.2.2.2 Without XML Schema embedded
    System.out.println("--1.1- the RiskLevel is: " + patExecContext.getProcessDataStringValue("/process_data/myform/form-data/data/xdp/dataset s/data/fields/Risk_Level") + " @@@@@");
    1.2.2.3 Conclusion
    In both the cases, a blank value is printed. In both the cases, we get some output which is when we use
    System.out.println("--1.1- the RiskLevel is: " + patExecContext.getProcessDataStringValue("/process_data/myform/form-data/data/xdp/dataset s/data ") + " @@@@@");
    In this case all the values are printed with space in between.
    This is the basic feature which has to be used while developing workflows.

    Hi
    You might want to try using VariableLogger, at:
    http://www.avoka.com/avoka/qpac_library.shtml
    It's a little more reliable than the script QPAC, especially if one of your xpath expressions is wrong.
    Please note that embedding the schema makes no difference in how the data from the form is stored. What makes the difference is whether your fields are bound to specify schema elements, or whether they use the "normal" binding.
    Howard

  • 2 Form Fields, Same Data Except a Prefix and Suffix

    I have a 2 form fields. User will enter information (purchase order number) into Field 1. Field 2 will be a barcode font that requires the same digits, except with a starting asterisk and ending asterisk. These asterisks can not appear in Field 1. The number of digits that will appear in both fields will vary in length from 6 to 18 digits.
    Example: Field 1: 123456 > Field 2: *123456*
    Is there a way to have Field 2 auto fill with information from Field 1 and add the asterisks?

    You can set up a custom calculate script for the second field that's something like:
    // Get the value of the first field
    var v = getField("Field 1").valueAsString;
    // Add leading/trailing asterisks if not blank
    event.value = v ? "*" + v + "*" : "";
    Replace "Field 1" with the actual name of the field.

  • Pre-populating a date/time column with the value entered in the last added item

    I have a list with a column called "expected finish date". Whenever the user adds the very first item in a list, he/she should have to enter a value for this column.
    I want to make all new item entries to pre-poplate this field with the value entered in the previously added item. This way, he/she wont have to re-enter the date every time (which rarely changes). How can this be done?

    could create a second list ("state") with column ("default finish date")...
    create a workflow on main list... if column is blank/empty, pull from second list... otherwise, update second list with the value that was entered.
    Or, customize the form (InfoPath or JavaScript)
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • A form field to insert white space

    Hi all,
    I need to insert some white space (the number of these white space is depending to some condition) in a form field.
    I show in my report a value and then I must complete this value with some white space to have finally a string with a fixed number of characters.
    I have a form field with a value (<?VALUE?>) and then I would insert a new form field to show only some white space. I can not add these white space directly on the field form containing the value.
    Thanks

    Balaji wrote:
    I need insert white space into table which a VARCHAR2 column. Just insert it, Whats the issue?
    I would like to validate the below expression against the data in the column \S.* What is this expression and where did you get it from?
    I guess this pattern validates for non-whitespace characters. Anyone help me on this and explain what this pattern does?No in regular expression space is represented as [:space:]
    Please read {message:id=9360002}

  • Fillable Form Fields Created With Acrobat XI Pro on Mac Won't Save on PCs?

    Hi all,
    Apologies if this has been covered already, but I've done a search of the forums that have turned up nothing.
    Briefly, I have created a fillable form with Acrobat XI Pro on a Mac. The original file was created with InDesign CS6.
    Once the fields were created in Acrobat, the file was saved as a Reader Extended PDF.
    The problem is that Mac users are able to fill in the fields and save the PDF, while Windows users are not.
    Any ideas?
    Thanks!

    Anoop9178 wrote:
    Hi Alex,
    Please refer to following forum post.
    http://forums.adobe.com/message/5765569#5765569
    Regards,
    Anoop
    You recommended answer seem to imply that the users are using Preview. When according the OP in that thread makes no mention on Mac except he created the form on Mac everyone else is using a PC. If anyone is using preview that answer would apply. If anyone filled out the form using Preview then follow the advice in the Link
    I would say your using possibly the wrong Font or the wrong version of the font. If anyone has Acrobat on a PC open the form on a PC if the form fields appear as though nothing is there, then see if you can change the font used. Just try anything other than what is listed. See if the text appears.  If it does then you have a defective font or  the Mac and PC don't use the same version.
    On Mac, if you have more than one version of a Font Style, say Aerial Italic for example, issues like this invisible text will happen. Macs don't tolerate more than one version of the same Font.  You can't have two versions of say Aerial Italic or Helvetica Bold or Courier Bold Italic. PCs you can have 50 copies of the same font and it don't matter. The applications just pick one if it happens to be different then That it.
    In Reader or Acrobat you might set to use local Fonts that might clear up the issue On Mac go to Preferences and Page Display:
    Check use local Fonts.

  • Dropdown boxes selection-additional form field

    FormsCentral -->Templates tab -->  Trade Seminar R.S.V.P Form ( https://adobeformscentral.com/?f=fFzLm5nQP1QqDDU2UeQTsw&preview# )
    In this form there is a feature I would like to create in one of my forms. Under "meals" if you select "other" an extra form field appears...how do I create this?
    Thx!

    When you create the drop down there is a "Include Other Choice" option on the field property panel - check it.

  • W2 boxes mapped to tax form fields or groups

    hi,
    Is there any documentation that gives the mapping of w2 boxes to the tax form fields or groups? If not anybody made that mapping for the reference?
    Points guaranteed

    Hello,
    Go to SFP transaction and provide the Form name and Look for the field name which is mapped to the Box, then go to T5UT3 in SE16n and see how the tax form field gets the value and which Tax form is mapped for the Tax form field. Detailed documentation I have created in the WIKI link
    https://wiki.sdn.sap.com/wiki/display/ERPHCM/StepstofindparticularBoxvalueinTaxReporter
    With Regards,
    S.Karthik

  • Locking form fields

    I have an approval form that requirs input from several people. I would like to lock an individual's form field after they have entered data. Is this possible and if so, can someone tell me how to accomplish it?

    Yes ....I would wrap the two different parts that each user has to fill out in a subform and then create a scripting function to lock all fields in a given subform. I have included a sample that will show you the scripting object to do the locking. In this case it is locking the entire form, but if you pass in the subform that you want to lock then it will only lock the fields below the subform. The code to call the scripting obejct is behind the lclick event of the lock fields button. In my case I am passing in form1 (which is the root node of the form).
    Paul

  • Populating parts of form based on Value entered in the first field

    Hello,
    I am trying to create a form, where user will enter the serial number of his equipment and I want him to click a verify button next to it.Upon clicking the verify button I want the Item Description field of the form to be updated ( this info is pulled from a backend MySql DB).Also, the text fields corresponding to the Equipment Site to be populated.After checking all the info, user should be able to click a submit button at the end of form and this information should be written to another table.I attached a Insert record server behaviour to form.Essentially, I want to attach a different action to both buttons on the form.In my view this is same a when we fill those registration form and based on our country, our state drop down gets populated.It seems this is doable, but I am not able to figure out how.I would really appreciate any help
    Thanks

    This is very simple if you understand PHP code. Basically, you give the two buttons different names, and use PHP conditional logic to control what happens. Call one button "verify" and the other "insert". If you use the POST method, you control the script like this:
    if (array_key_exists('verify', $_POST) {
      // create a recordset to retrieve the details ready for display
    } elseif (array_key_exists('insert', $_POST) {
      // insert the details in the the new table
    If you're not comfortable coding PHP yourself, the easy way to do it with Dreamweaver server behaviors is to use separate pages. In the first page, just create a form for the user to enter the serial number. Use the GET method to send the serial number to a separate page. In the new page, use the URL parameter containing the serial number to create a recordset to populate the insert form. Then apply an Insert Record server behavior using the POST method to insert the details into a new table.

Maybe you are looking for

  • Report should prompt me for parameters, please help.

    Hi All, I am using Crystal version 10, So is there any way I can get the behaviour of my parameters as dynamic parameter? I have this requirement because when I am deploying the Report on BO server, and try to open the report from InfoView, it is not

  • Logical and Physical Length in Datastore

    I would like to know the differences between logical length and physical length in datastore. Can anyone teach best practices to use them properly?

  • Problem in importing ESS Business Package in EP 5.0

    Hi I am aiming at importing the ESS 4.6C Business Package which is a zip file into EP 5.0. At the time of import i receive a prompt saying that the files with only the following extensions can be imported into the portal. The file extensions that can

  • Problem with Integration Process

    Hi all, I have a problem within a Integration Process. I created a loop with help of a local integer element. On the development system it was running without any issued. But on the productive machine the Integration process runs until he has to incr

  • Can we run abap query via sapnco 3.0

    Hi Experts, I read tables LFA1 and LFM1 with RFC_READ_TABLE on sapnco. Then i convert these tables to entity and join these tables on lifnr property with LINQ. But this operation takes a long time. Therefore, i want to run an ABAP Query that joining