Autopopulate Dynamic Dropdown Field LC Designer

I am trying to autopopulate dynamically created dropdown fields within another section of a form.
Here is what I am trying to do:
I have a report (home inspection) that is also an estimate for repairs.  I have several section of the report that have a button to add additional items (e.g. Kitchen, Living Room, ect).  The button dynamically adds new items for each area (e.g. Kitchen, Living Room, ect). Code is below, what I want to do is have all of the dynamically created items appear in the estimate section of the report but am not able to figure out the best way to do this.  Basically, all of the items that appear in the report also need to be in the estimate and I need to figure out a way to have the items duplicated from the report to the estimate.  Any help would be greatly appreciated.  Thank you
<subform name="GoExterior" w="203.2mm" layout="tb">
<draw name="GoExteriorTextHead" w="64.834mm" h="7.62mm">
<ui>
<textEdit/>
</ui>
<value>
<text>General Observations - Exterior</text>
</value>
<font size="14pt" typeface="Myriad Pro" baselineShift="0pt"/>
<margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
<para spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
</draw>
<subform w="203.2mm" name="ItemsSubFormCrawlSpace" layout="tb">
<draw name="Text3" w="29.2864mm" h="5.2331mm">
<ui>
<textEdit/>
</ui>
<value>
<text>Crawl Space</text>
</value>
<font size="12pt" typeface="Myriad Pro" baselineShift="0pt" weight="bold" posture="italic" underline="1"/>
<margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
<para spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
</draw>
<subform name="DropdownGOCrawl" w="203.2mm" layout="tb">
<occur max="-1"/>
<subform w="203.2mm" name="DDCrawl">
<keep intact="none"/>
<field name="DropDownCrawl" w="171.45mm" h="9mm">
<ui>
<choiceList textEntry="1">
<border presence="hidden"/>
<margin/>
</choiceList>
</ui>
<font typeface="Myriad Pro" weight="bold" size="11pt"/>
<margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
<para vAlign="middle"/>
<caption reserve="25mm">
<para vAlign="middle"/>
<value>
<text>Item:</text>
</value>
</caption>
<items save="1">
<text>Debris was observed at crawl space.</text>
<text>This structure lacks proper and adequate earthquake retrofitting hardware.</text>
<text>Anchor bolts at exposed sill plate framing structure are loose and inadequate.</text>
<text>Existing sewer line is not secured or strapped at crawl space.</text>
<text>All insulations at crawl space must be faced and secured utilizing wires or staples.</text>
<text>Sub-floors must have R-19 insulation properly installed.</text>
<text>Crawl space areas must have minimum 18” overhead clearance.</text>
<text>There was only one crawl space access panel to the rear addition.  We were unable to inspect the main original crawl space due to lack of access.  We highly recommend providing one access panel for the original structure.</text>
</items>
<bind match="none"/>
</field>
<subform w="28.575mm" name="DropdownAddGOexterior" relevant="-print" x="174.625mm">
<field h="6mm" name="AddDropdownGOExterior" w="28.575mm" relevant="-print">
<ui>
<button highlight="inverted"/>
</ui>
<font typeface="Arial"/>
<caption>
<value>
<text>Add Comment</text>
</value>
<para hAlign="center" vAlign="middle"/>
</caption>
<border hand="right">
<edge stroke="raised"/>
<fill>
<color value="212,208,200"/>
</fill>
<corner/>
</border>
<bind match="none"/>
<event name="event__click" activity="click">
<script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:182C1B80-8D7F-46A2-B893-6A7B250C972E CRC:1996671831)
//+ Type: Action
//+ Result1: AddInstance("$Node2")
//+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormCrawlSpace[0].DropdownGOCrawl[0].CommentFiel d[0]
//+ Node1: form1[0].Report[0].GoExterior[0].ItemsSubFormCrawlSpace[0].DropdownGOCrawl[0].DDCrawl[0]. DropdownAddGOexterior[0].AddDropdownGOExterior[0]
//+ Condition1: Button("$Node1","click")
//+ ActionName: AddDropdownGOExterior.click
this.resolveNode('DropdownGOCrawl._CommentField').addInstance(1);
if (xfa.host.version &lt; 8) {
xfa.form.recalculate(1);
/* This button will Add one instance of the repeating subform or table row.
   sSubformSOM: SOM expression of the repeating subform or table row.
   bCalc:  
Flag - true if the new instance might be referenced by other calculations, otherwise false.
   message:
The error message displayed.
   These variables must be assigned for this script to run correctly.
   Replace &lt;value&gt; with the correct value.
var sSubformSOM = "&lt;value&gt;";
// Example: var sSubformSOM = "xfa.form.form1.Subform1";
var bCalc = true;
// Example: var bCalc = false;
var message = "You have reached the maximum number of items allowed.";
// DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
// Build the SOM expression of the Instance Manager using the 'underscore' syntax.
var oSubform = xfa.resolveNode(sSubformSOM);
// Evaluate the SOM expression.
var sParentSOM = oSubform.parent.somExpression; 
// Get the parent SOM expression.
var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
var oManager = xfa.resolveNode(sManagerSOM);
// Evaluate the SOM expression.
 var nMaxCount = oManager.occur.max;
// Get the maximum number of subform occurrences allowed.
var nSubCount = oManager.count;
// Get the current number of instances.
// Proceed if the maximum number of subform occurrences has not been reached.
if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
// Invoke the Instance Manager.
var oNewInstance = oManager.addInstance(1);
// Fire the form calculations.
if (bCalc == true) {
// Execute all the form calculations.
xfa.form.recalculate(1);
} else {
xfa.host.messageBox(message,"Add Item", 3);
// END OF DO NOT MODIFY
</script>
</event>
<assist>
<toolTip>Add an item</toolTip>
</assist>
</field>
<margin topInset="2.54mm" bottomInset="2.54mm"/>
<?templateDesigner expand 0?></subform>
<occur max="-1"/>
<?templateDesigner expand 0?></subform>
<subform w="203.2mm" name="CommentField" layout="tb">
<field name="CommentFieldCrawl" minH="8.453mm" w="203.2mm">
<ui>
<textEdit multiLine="1">
<border presence="hidden"/>
<margin/>
</textEdit>
</ui>
<font typeface="Myriad Pro" weight="bold" size="11pt"/>
<margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
<para vAlign="middle"/>
<caption reserve="25mm">
<para vAlign="middle"/>
<value>
<text>Comment:</text>
</value>
</caption>
<bind match="none"/>
</field>
<occur min="0" max="-1"/>
<?templateDesigner expand 1?></subform>
<?templateDesigner expand 1?></subform>
<margin topInset="2.54mm"/>
<?templateDesigner expand 0?></subform>
<subform w="28.575mm" h="11.218mm" name="DropdownAddGOexterior" relevant="-print">
<field h="6mm" name="AddDropdownGOExterior" w="28.575mm" y="0.138mm" relevant="-print">
<ui>
<button highlight="inverted"/>
</ui>
<font typeface="Arial"/>
<caption>
<value>
<text>Add Item</text>
</value>
<para hAlign="center" vAlign="middle"/>
</caption>
<border hand="right">
<edge stroke="raised"/>
<fill>
<color value="212,208,200"/>
</fill>
<corner/>
</border>
<bind match="none"/>
<event name="event__click" activity="click">
<script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:85B19E00-052E-47D6-A49E-4675131292BE CRC:2010014197)
//+ Type: Action
//+ Result1: AddInstance("$Node2")
//+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormCrawlSpace[0].DropdownGOCrawl[0]
//+ Node1: form1[0].Report[0].GoExterior[0].DropdownAddGOexterior[0].AddDropdownGOExterior[0]
//+ Condition1: Button("$Node1","click")
//+ ActionName: AddDropdownGOExterior.click
this.resolveNode('ItemsSubFormCrawlSpace._DropdownGOCrawl').addInstance(1);
if (xfa.host.version &lt; 8) {
xfa.form.recalculate(1);
/* This button will Add one instance of the repeating subform or table row.
   sSubformSOM: SOM expression of the repeating subform or table row.
   bCalc:  
Flag - true if the new instance might be referenced by other calculations, otherwise false.
   message:
The error message displayed.
   These variables must be assigned for this script to run correctly.
   Replace &lt;value&gt; with the correct value.
var sSubformSOM = "&lt;value&gt;";
// Example: var sSubformSOM = "xfa.form.form1.Subform1";
var bCalc = true;
// Example: var bCalc = false;
var message = "You have reached the maximum number of items allowed.";
// DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
// Build the SOM expression of the Instance Manager using the 'underscore' syntax.
var oSubform = xfa.resolveNode(sSubformSOM);
// Evaluate the SOM expression.
var sParentSOM = oSubform.parent.somExpression; 
// Get the parent SOM expression.
var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
var oManager = xfa.resolveNode(sManagerSOM);
// Evaluate the SOM expression.
 var nMaxCount = oManager.occur.max;
// Get the maximum number of subform occurrences allowed.
var nSubCount = oManager.count;
// Get the current number of instances.
// Proceed if the maximum number of subform occurrences has not been reached.
if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
// Invoke the Instance Manager.
var oNewInstance = oManager.addInstance(1);
// Fire the form calculations.
if (bCalc == true) {
// Execute all the form calculations.
xfa.form.recalculate(1);
} else {
xfa.host.messageBox(message,"Add Item", 3);
// END OF DO NOT MODIFY
</script>
</event>
<assist>
<toolTip>Add an item</toolTip>
</assist>
</field>
<margin topInset="2.54mm" bottomInset="2.54mm"/>
<?templateDesigner expand 0?></subform>
<subform w="203.2mm" name="ItemsSubFormDoorsWindows" layout="tb">
<draw name="Text3" w="1.471014in" h="5.2331mm">
<ui>
<textEdit/>
</ui>
<value>
<text>Doors and Windows</text>
</value>
<font size="12pt" typeface="Myriad Pro" baselineShift="0pt" weight="bold" posture="italic" underline="1"/>
<margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
<para spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
</draw>
<subform name="DropdownGODoors" w="203.2mm" layout="tb">
<occur max="-1"/>
<subform w="203.2mm" name="DDCommentBtnDoors">
<keep intact="none"/>
<occur max="-1"/>
<field name="DropDownDroors" w="171.45mm" h="9mm" y="0mm">
<ui>
<choiceList textEntry="1">
<border presence="hidden"/>
<margin/>
</choiceList>
</ui>
<font typeface="Myriad Pro" weight="bold" size="11pt"/>
<margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
<para vAlign="middle"/>
<caption reserve="25mm">
<para vAlign="middle"/>
<value>
<text>Item:</text>
</value>
</caption>
<items save="1">
<text>Some windows are original single glazed windows which do not operate properly.  Some have been replaced by wooden windows which are not installed properly.</text>
<text>Existing wooden patio doors are installed with the hinges exposed at exterior which will allow easy access to intruders.  It also does not allow any space for screen doors at exterior.  Special roll in screen doors should be ordered at interior or reverse the</text>
<text>Out of plumb windows were observed around the dwelling.  Some windows are plumb on one side and out of plumb on the other side.  We believe it is caused by a combination of sloppy workmanship and structural movements.  Since we were unable to access the cra</text>
<text>We did not perform a wet test at windows due to lack of permission.</text>
<text>Window and door trims at siding connections are not installed properly.</text>
<text>Most wooden windows sustain water damage and are inoperable.</text>
<text>Broken windows were observed at this dwelling.</text>
<text>Interior use doors were utilized at exterior.</text>
<text>Rear door to the laundry area is installed with hinges exposed at exterior which will allow easy access to intruders. </text>
<text>Missing screens were observed at existing windows.</text>
</items>
</field>
<subform w="203.2mm" name="DropdownAddGOexterior" relevant="-print" y="0mm">
<field h="6mm" name="AddDropdownGOExterior" w="28.575mm" relevant="-print" x="174.625mm" y="0mm">
<ui>
<button highlight="inverted"/>
</ui>
<font typeface="Arial"/>
<caption>
<value>
<text>Add Comment</text>
</value>
<para hAlign="center" vAlign="middle"/>
</caption>
<border hand="right">
<edge stroke="raised"/>
<fill>
<color value="212,208,200"/>
</fill>
<corner/>
</border>
<bind match="none"/>
<event name="event__click" activity="click">
<script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:DA5FCB9C-4F98-4657-9C14-49E032341848 CRC:3943787667)
//+ Type: Action
//+ Result1: AddInstance("$Node2")
//+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormDoorsWindows[0].DropdownGODoors[0].CommentFi eld[0]
//+ Node1: form1[0].Report[0].GoExterior[0].ItemsSubFormDoorsWindows[0].DropdownGODoors[0].DDComment BtnDoors[0].DropdownAddGOexterior[0].AddDropdownGOExterior[0]
//+ Condition1: Button("$Node1","click")
//+ ActionName: AddDropdownGOExterior.click
this.resolveNode('DropdownGODoors._CommentField').addInstance(1);
if (xfa.host.version &lt; 8) {
xfa.form.recalculate(1);
/* This button will Add one instance of the repeating subform or table row.
   sSubformSOM: SOM expression of the repeating subform or table row.
   bCalc:  
Flag - true if the new instance might be referenced by other calculations, otherwise false.
   message:
The error message displayed.
   These variables must be assigned for this script to run correctly.
   Replace &lt;value&gt; with the correct value.
var sSubformSOM = "&lt;value&gt;";
// Example: var sSubformSOM = "xfa.form.form1.Subform1";
var bCalc = true;
// Example: var bCalc = false;
var message = "You have reached the maximum number of items allowed.";
// DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
// Build the SOM expression of the Instance Manager using the 'underscore' syntax.
var oSubform = xfa.resolveNode(sSubformSOM);
// Evaluate the SOM expression.
var sParentSOM = oSubform.parent.somExpression; 
// Get the parent SOM expression.
var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
var oManager = xfa.resolveNode(sManagerSOM);
// Evaluate the SOM expression.
 var nMaxCount = oManager.occur.max;
// Get the maximum number of subform occurrences allowed.
var nSubCount = oManager.count;
// Get the current number of instances.
// Proceed if the maximum number of subform occurrences has not been reached.
if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
// Invoke the Instance Manager.
var oNewInstance = oManager.addInstance(1);
// Fire the form calculations.
if (bCalc == true) {
// Execute all the form calculations.
xfa.form.recalculate(1);
} else {
xfa.host.messageBox(message,"Add Item", 3);
// END OF DO NOT MODIFY
</script>
</event>
<assist>
<toolTip>Add an item</toolTip>
</assist>
</field>
<margin topInset="2.54mm" bottomInset="2.54mm"/>
<?templateDesigner expand 0?></subform>
<?templateDesigner expand 1?></subform>
<subform w="203.2mm" name="CommentField" layout="tb">
<field name="CommentField" minH="8.453mm" w="203.2mm">
<ui>
<textEdit multiLine="1">
<border presence="hidden"/>
<margin/>
</textEdit>
</ui>
<font typeface="Myriad Pro" weight="bold" size="11pt"/>
<margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
<para vAlign="middle"/>
<caption reserve="25mm">
<para vAlign="middle"/>
<value>
<text>Comment</text>
</value>
</caption>
</field>
<occur max="-1" min="0"/>
<?templateDesigner expand 0?></subform>
<?templateDesigner expand 1?></subform>
<?templateDesigner expand 0?></subform>
<subform w="28.575mm" h="11.218mm" name="DropdownAddGOexterior" relevant="-print">
<field h="6mm" name="AddDropdownGOExterior" w="28.575mm" y="0.138mm" relevant="-print">
<ui>
<button highlight="inverted"/>
</ui>
<font typeface="Arial"/>
<caption>
<value>
<text>Add Item</text>
</value>
<para hAlign="center" vAlign="middle"/>
</caption>
<border hand="right">
<edge stroke="raised"/>
<fill>
<color value="212,208,200"/>
</fill>
<corner/>
</border>
<bind match="none"/>
<event name="event__click" activity="click">
<script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:23EFDB6C-2F4B-4F54-A6AC-CD20621C6CE2 CRC:1796082201)
//+ Type: Action
//+ Result1: AddInstance("$Node2")
//+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormDoorsWindows[0].DropdownGODoors[0]
//+ Node1: form1[0].Report[0].GoExterior[0].DropdownAddGOexterior[1].AddDropdownGOExterior[0]
//+ Condition1: Button("$Node1","click")
//+ ActionName: AddDropdownGOExterior.click
this.resolveNode('ItemsSubFormDoorsWindows._DropdownGODoors').addInstance(1);
if (xfa.host.version &lt; 8) {
xfa.form.recalculate(1);
/* This button will Add one instance of the repeating subform or table row.
   sSubformSOM: SOM expression of the repeating subform or table row.
   bCalc:  
Flag - true if the new instance might be referenced by other calculations, otherwise false.
   message:
The error message displayed.
   These variables must be assigned for this script to run correctly.
   Replace &lt;value&gt; with the correct value.
var sSubformSOM = "&lt;value&gt;";
// Example: var sSubformSOM = "xfa.form.form1.Subform1";
var bCalc = true;
// Example: var bCalc = false;
var message = "You have reached the maximum number of items allowed.";
// DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
// Build the SOM expression of the Instance Manager using the 'underscore' syntax.
var oSubform = xfa.resolveNode(sSubformSOM);
// Evaluate the SOM expression.
var sParentSOM = oSubform.parent.somExpression; 
// Get the parent SOM expression.
var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
var oManager = xfa.resolveNode(sManagerSOM);
// Evaluate the SOM expression.
 var nMaxCount = oManager.occur.max;
// Get the maximum number of subform occurrences allowed.
var nSubCount = oManager.count;
// Get the current number of instances.
// Proceed if the maximum number of subform occurrences has not been reached.
if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
// Invoke the Instance Manager.
var oNewInstance = oManager.addInstance(1);
// Fire the form calculations.
if (bCalc == true) {
// Execute all the form calculations.
xfa.form.recalculate(1);
} else {
xfa.host.messageBox(message,"Add Item", 3);
// END OF DO NOT MODIFY
</script>
</event>
<assist>
<toolTip>Add an item</toolTip>
</assist>
</field>
<margin topInset="2.54mm" bottomInset="2.54mm"/>
<?templateDesigner expand 0?></subform>
<subform w="203.2mm" name="ItemsSubFormDriveWay" layout="tb">
<draw name="Text3" w="29.2864mm" h="5.2331mm">
<ui>
<textEdit/>
</ui>
<value>

Hi guys,
I don't think, that it is possible to change the values of the dropdown by changing only the xml-file.
I found another solution:
1. open the form in Acrobat Pro
2. select in the menu bar Form->Manage Form Data->Import Data
3. choose your current xml-file
4. save the form
Now the values are available.
To change the values, you have to repeat these 4 steps with a new xml-file.
regards
Martin

Similar Messages

  • Dynamic Dropdown Field is blank

    I am using LiveCycle Designer 8.05<br /><br />And I am trying to create a dropdown form populated dynamically I guess from an .xml file.(Unless there is a better method)<br /><br />Basically I need to be able to have people update the contents of dropdown field but they wont have access to do it directly in designer<br />So I want them just to be able to update the .xml data.<br /><br />So I had this for the .xml<br /><br />___CODE___<br /><br /><?xml version = "1.0" encoding = "UTF-8"?><br /><br /><vehicles<br />    xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"<br />    xsi:noNamespaceSchemaLocation = "rank.xsd"<br />   ><br />       <nickname>E1</nickname><br />       <nickname>E2</nickname><br />       <nickname>E3</nickname><br /></vehicles><br /><br />___END_CODE___<br /><br />This is the .xsd schema<br /><br />___CODE___<br /><br /><?xml version = "1.0" encoding = "UTF-8"?><br /><br /><xsd:schema<br />   xmlns:xsd = "http://www.w3.org/2001/XMLSchema"<br />   ><br />    <xsd:element name = "vehicles"><br />     <xsd:complexType><br />      <xsd:sequence><br />       <xsd:element name = "nickname" <br />                    type = "xsd:string"<br />                    maxOccurs = "unbounded"/><br />      </xsd:sequence><br />     </xsd:complexType><br />    </xsd:element><br /></xsd:schema><br /><br />___END_CODE___<br /><br />I have Show Dynamic Properties On<br /><br />I add a dropdown box<br />I go to the binding tab<br />Click Default Binding<br />Select XML Schema<br />Select the.xsd  file from above<br />Click Embed<br />Click Finish<br /><br />Click specify item values<br />In the dynamic properties it says<br />Binding:<br />Items $record.nickname[*]<br />Item Text  the only option is a dollar sign<br />Item Value  the only option is  adollar sign<br /><br />I click OK<br /><br />Save it as a dynamic xml form <br />Open it and the dropdown is blank.<br /><br />I feel like I have tried a thousand different variations but nothing works<br />I either end up with a blank dropdown or the dropdown gets converted to a text field and it is blank.<br /><br />Could anyone shed some light on my problem?<br />Thanks

    Hi guys,
    I don't think, that it is possible to change the values of the dropdown by changing only the xml-file.
    I found another solution:
    1. open the form in Acrobat Pro
    2. select in the menu bar Form->Manage Form Data->Import Data
    3. choose your current xml-file
    4. save the form
    Now the values are available.
    To change the values, you have to repeat these 4 steps with a new xml-file.
    regards
    Martin

  • Create a dynamic dropdown field in Adobe Acrobat Pro XI

    Hello all. I am trying to create a field in one of my forms using Adobe Acrobat Pro XI. I have a dropdown list of "main" items, and based on what is selected in that list, I want a second dropdown list to give different choices. I have searched and searched and have javascript that I thought might work, but maybe I am have a mistake or I am placing the javascript in the wrong place, becasue it is not working. I know very, very little about javascript, so any help would be so much appreciated.
    I am using Adobe Acrobat Pro XI. I added a "new field", and selected "dropdown". The field name is ProvType. The dropdown options are:
         Inpatient
         Outpatient
         Physician
    I have the "Commit selected value immediately" selected.The field is not validated. The format is "none." There are no actions or calculations associated with it.
    I then created another dropbox, and named it SubProvType. Under Actions, I selected the trigger as Mouse Up, and then selected the Action "Run a JavaScript." I selected the add button, and typed this in the JavaScript editor:
    switch (ProvType.rawValue)
        case "Inpatient":
            this.setItems("Hospice,Hospital,Nursing Facility");
            break;
        case "Outpatient":
            this.setItems("Adult Day Center,Home,Other");
            break;    
        case "Physician":
            this.setItems("Surgeon,Family Practice,Neurologist");
            break;    
    What I want to happen is:
    If "Inpatient" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Hospice
         Hospital
         Nursing Facility
    If "Outpatient" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Adult Day Center
         Home
         Other
    If "Physician" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Surgeon
         Family Practice
         Neurologist
    However.... when I close the form editing and try to select a different option in the ProvType field, the SubProvType field remains blank and there are no options available. There are also no errors.
    I must be missing something, but I have no idea where to start. Thank you in advance for any help anyone can provide.

    dbettis2.... Please understand that everything I am about to tell you is ONLY thanks to the help I received from Gilad D. I don't know if this will help you or not, but I want to try and pass it forward.
    If what you are looking to do is have two dropdown fields, and the second one (concentration) be a list determined by what was chosen in the first one (newMajor) then this will work, if you are using Adobe Acrobat Pro.
    Create a dropdown field and name it newMajor. In the "options" tab. Make sure that you enter all of the items that you want in that list AND that they match the javascript (or this will not work.)
    In this case, I believe you want the initial list to be:
    - Select One -
    BA - Communication (BACOMM)
    BA - History (BAHIST)
    BBA - Business Administration (BBA-BADM)
    After you create the dropdown field and enter all of the options, go to the Validate tab, chose "run custom validation script", then copy and paste the following:
    switch (event.value) {
        case "- Select One -":
            this.getField("Concentration").setItems(["-----"]);
            break;
        case "BA - Communication (BACOMM)":
            this.getField("Concentration").setItems(["- Select One -","None","Mass Communication (MCO1)","Theatre (THEA)","Communication Studies (MC02)"]);
            break;
        case "BA - History (BAHIST)":
            this.getField("Concentration").setItems(["- Select One -","None","Teacher Certification (HIS1)"]);
            break;
        case "BBA - Business Administration (BBA-BADM)":
            this.getField("Concentration").setItems(["- Select One -","None","Supply Chain Management (SCM)","Hospitality Management (HSMG)"]);
            break;
    Then create a second dropdown field, and name it Concentration. Nothing further needs to be done with the second dropdown field (as far as entering options or any javascript.)
    It should work. I have created a form using this code and field structure, and it is working. I hope this helps you, if in fact this is what you were trying to do. (I do not know how to attach a file to this post or I would send you the PDF that I made so you could see the fields. If you message me, I can send it to you.)

  • Print form with dynamic dropdown

    Dear all,
    I have a form (xdp) with dynamic dropdown inside. (i.e. The value list is empty in design time)
    And I have a problem that the print out (via the sendToPrinter service) will have the data value (e.g. EN) instead of the display value (e.g. English) for all the dynamic dropdown.
    Would like to know if there are any solution beside mapping all the values from data value to display value before print?
    Thanks in advance
    Regards
    Bill

    I'm also seeking the better solution instead of
    a) creating 2 field - one for capture data, one for printing (and it doesn't work using LC ES server component)
    b) creating 2 templates - one for capture data, one for printing (maintenance overhead)
    Ideally & logically, this should be achieve by using one field since it has already come with the presence & relevant attribute.
    Anyway, the main problem, why dropdown data is printed instead of display value?
    The user doesn't even know what's the technical data behind the dropdown screen value he/she selected.
    From user point of view, nobody wants to see the technical data printed instead of the display value...

  • Using Webservice through RFC Func Mod Can I able to fill dropdown field

    Hi,
    I am going to develop offline interactive form using Webservice through RFC Function module.
    There are dropdown list fields in my adobe form. Then how can I able to fill these dropdown fields in my form, I mean how to bind the values to dropdown fields.
    Thanks & Regards,
    nspkumar.

    Hi,
    Option 1:
    If the form is designed in transaction SFP, which has a form interface (transaction SFI), then below solution will work:
    For example consider the data node name as 'COUNTRY' . Select drop down UI element and go to 'Object' properties tab. Select 'Binding' tab, on the top right hand side of this tab there is small icon, select the icon and enable the option 'Show Dynamic Properties'. Once this option is enabled in the 'Binding' tab you can click on the link 'Specify Item Values'. A popup will open, here specify the binding value as 
    $record.sap-vhlist.COUNTRY.item[*]
    Refer to link:
    [Drop down list binding|http://help.sap.com/erp2005_ehp_06/helpdata/en/43/7a667df4ad6fc9e10000000a1553f6/frameset.htm]
    Option 2:
    If the data connection is directly to the webservice then binding needs to be done similar to option 1 except one change. While binding the value in dynamic properties based on XML schema binding needs to be changed.
    As you can see in option 1, for dynamic property binding 
    $record.sap-vhlist.COUNTRY.item[*]
    , there is a value called sap-vhlist. This 'sap-vhlist' gets generated when form is designed in transaction SFP with form interface. So in your case if data connection is from webservice value sap-vhlist needs to changed to the value as per XML schema definition.
    Regards
    Srikanth KV

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • Dynamically making fields editable or non editable according to ddl value.

    Hi All,
    In my case I have a drop down field having various values on ADOBE form.According to those values the remaining fields in the form should get visible or invisible accordingly. Can you please help me out in javascripting required in this case?
    I have tried scripting as given below but it is not working. I request you to please tell me whats the problem in this and what needs to be done to achieve this.
    For Example in case if i select "03 - Transfer" in the dropdown field named OPTION then I want to make New Personal Sub area field as visible and editable on the form so that user can enter data into it ELSE it should not be visible on the form.For this the scripting i wrote in javascript in the event CALCULATE for this field is as follows.
    if($record.OPTION.DATA.FIELD == "03 - Transfer")
    then
    this.access == "open"
    else
    this.presence = "invisible"
    endif
    But this is not working when I check the form on portal.Please let me know what I need to do inorder to achieve this functionality.
    I have wrote the similar code in CALCULATE event for each field on the form but the form not working according to requirement.
    Please provide me with information how to decide the event in which we should write the script?
    Please let me know if this functionality can be achieved by coding in F.M in ABAP?If yes how?
    Thanks in Advance.
    Sarang

    Hi Chintan,
                    Thanks for the reply. The scripting I used in my case is as follows.But this is not working.Please let me know what may the problem.
    In the dropdown in EXIT event I wrote the following javascript.
    if(this.rawValue == "01 - Promotion")
         DATA.MainSubform.Subform3.EFF_DATE.access = "open";
         DATA.MainSubform.Subform3.EFF_DATE.presence = "visible";
    and in the main subform I have wrote the following script as u told in the FORM READY event
    DATA.MainSubform.Subform3.EFF_DATE.access = "readOnly";
    DATA.MainSubform.Subform3.EFF_DATE.presence = "hidden";
    According to this script the at first when the form is opened the EFF_DATE field should be invisible and should only get visible when the user selects "01 - Promotion" from the drop down.
    Note - "01 -  Promotion" is one of the values from the drop down
    Also Please let me know what needs to be done to make the form dynamic.
    waiting for ur reply.
    Thanks in Advance,
    Sarang.

  • Dynamic Text Field

    I've created a dynamic text field where I've insert into a lot of HTML code.
    Since it's too much long I've used a default scrollbar and simply dropped it onto the field so that It's linked to that.
    When I try it the bar is there but I can just see the upper arrow and the bottom one; the middle part isn't visible and I can't scroll down the HTML content.
    Any idea?

    It's possible it will work in AS3 since I just tried it 1) didn't kick up an error, and 2) worked (using your code, so I don't know what your problem really is).
    That's the trouble with having languages that allow similar things to be coded differently... it can sometimes be hard to tell.  It's bad enough there are usually numerous ways to approach a design.
    If I were setting an autoSize I would be using (based on the help docs)...
    links.autoSize = TextFieldAutoSize.LEFT;

  • Adding action in Dropdown fields in visual composer iview

    Hi,
    I develop a application in Visual composer 7.0. I want to convert the input field in drop down for selecting the different values. I can change the same by selecting the particular input fields in design screen. But I not able to specify the values, Action for the drop down. Can someone explain how to add the Values/Action for functioning the drop down field in the visual composer iView?
    Thanks,
    Kundan

    Hi Babu,
    You want to populate the Drop-Down list dynamically or based on input field value you need to populate a Drop-Down list.
    Regards,
    Nivas209
    Edited by: Nivas209 on Jan 3, 2012 2:53 PM

  • How to create Dropdown field

    Hi,
    i have created some new fields in BUPA using EEWB by Create extension wizard...
    i have assigned it to design layer object .
    i need this field to be a dropdown list ......
    A have added allowed values to corresponding view of this field.......
    BUt now it is appearing as a picklist as in case of country field ........
    Can anybody suggest how to make a dropdown list .........
    Regards....
    kanika

    Assuming you have done all the 4 below steps done in the progrm BCALV_EDIT_07,
    §1.Define an extra field in your output table
       for each column where you want to use drop down listboxes.
       (One additional field refers to cells of one column).
    §2.Define a dropdown table and pass it to ALV.
       One listbox is referenced by a handle, e.g., '1'.
       For each entry that shall appear in this listbox
       you have to append a line to the dropdown table
       with handle '1'.
       This handle can be assigned to several columns
       of the output table using the field catalog.
    §3.Set your dropdown field editable and assign the fieldname of the
       corresponding additional field to DRDN_FIELD of the fieldcatalog.
    §4.Set the handle of your additional field of your output
       table according to the listbox that shall be displayed.
    I think you should be getting what is done in BCALV_EDIT_07 program.
    Anyways, did you try calling the method set_ready_for_input after the set_table_for_first_display method is called?
    Hope this helps.
    Thanks,
    Balaji

  • Dynamic dropdown based on user selection of another dropdown on the same page

    hi all, ok, I have a table which contains use data, a name,
    and a userID. for the example lets say "Simon Bullen" and my userID
    is "999".
    on a form I have, there is a dropdown box, which is dynamic
    from this table, and allows me to select Simon Bullen, however, I
    have a hidden field on the form, which when the user selects "simon
    bullen" the hidden field populates with the appropiate U number
    from the same table.... no i thought this would do it:
    <cfquery name="userNumber" datasource="userList">
    SELECT userNumber FROM dbo.Users WHERE Name =
    <cfqueryparam value="#form.Name#">
    </cfquery>
    and then my dynamic form field (hidden) would reference to
    this query....
    but it doens't work, could somebody please enlighten me? I'm
    hoping its something silly
    Thanks in advance

    You could make the value of the option the UserID and the
    option display the name.
    If that isn't what you need, I think you'll need some
    javascript to populate your hidden field based on what is chosen in
    the select.
    I think you can modify this:
    http://www.javascriptkit.com/javatutors/selectcontent2.shtml
    ...to populate your hidden field instead of a new select
    list.
    If there's a way to do that without JS I'm not aware of it.
    A third possibility: look up the UserID (based on the name
    chosen) after the form is submitted then do with it whatever you
    need to.

  • Importing Word 2010 Developer Dropdown fields

    I have been trying to import a form designed in MS Word 2010 with tabled containing Word Developer dropdown fields into LiveCycle Designer ES3. My OS is Windows 7.
    The process always fails.
    The importing Word Document begins with Converting Tables and within a few seconds i receive the message "Adobe LiveCycle Designer Word Import Filter has stopped working. A problem caused the program to stop working correctly. Please close the program."
    There are several dropdown fields in the Word document a few with 30-40 options to select from. Any assistance would be greatly appreciated as the time required to recreate the fields in LiveCycle would take at least a full day.

    Hi Markus,
    Could you tell me how did you go to "Layout" properties in step 6?
    Max Meng
    TechNet Community Support

  • Add a dropdown field to the task view that determines work hours for that task.

    I'm very new to MSProject.  I'm entering project data for the design, review, implementation, testing and acceptance of many subroutines.  The subroutines can be categorized into an enumeration of types. 1 - direct sub , easy, 2 - direct sub,
    average, 3 - direct sub complex, 4 - supervisory sub easy, 5 - supervisory sub average, 6 subervisory sub complex.
    I would like to create a dropdown field that once the category has been selected, the work hours are locked.  For Example if I have 50 "direct sub, easy", I want to be able to change the work hours assocated with "direct sub, easy"
    in only one place and have all "50 direct sub, easy" tasks automatically use the new work hours.
    Is there a way to do this in MSProject?

    Denis,
    Okay, let's revisit the approach. If you have six defined categories and you want to select from one of those categories for each task, then you need to create a custom field with a lookup table. Let's use the Text1 field.
    1. First add the Text1 field as a column in the view, I assume you're using the Gantt Chart view
    2. Select the heading of that column and go to: Project/Properties group/Custom Fields
    3. That will open the Custom Fields window with Text1 already pre-selected. Hit the "Lookup" button
    4. In the Edit Lookup Table window, enter each of your 6 categories. You can give each a number with a description (e.g. 1 - direct sub, easy), or just put the description in the Value field (e.g. direct sub, easy) with nothing in the description.
    5. Hit close
    Now when you select the Text1 field for any task, the lookup list will appear allowing you to chose of the the entries. Now you can create a filter as I suggested before and go through the process of setting the work value for all like category tasks.
    Hope this helps.
    John

  • Center Image in dynamic Image Field

    Hello,
    i am from Germany and my english is not good, so excuse for it.
    I Use Live Cycle Designer 8.0.
    I Designed a Form with a dynamic Image Field, so the user is able to change the image.
    The Image Field is centert horizontally. The Problem is, if the new Image is smaller than the Image Field, the image is always "left" align.
    It is possible to center the image in a dynamic Image Field?
    thx for help

    There is a fix for the centered image problem with Image Fields in Live Cycle:
    I found that if you make a text field first... set you paragraph alignment.. centered text, centered top, bottom, or middle.. then convert the field to an image field it will retain the text formatting for the image.

  • Printing - With Dynamic Text Fields

    Hello,
    i wonder if anyone can help me........i know there are a lot
    of posts already on how to print out dynamic text but all of them
    seem to be using scrolling text fields.
    However my problem isn't even as complex as this but i still
    can't work it out.
    At the moment i have a form of text boxes which the user
    inputs text.............from here there is a print
    button.........in order to compile all of the answers together i
    have created a movie clip.........with the layout of the printed
    page on it, and placed this on the main timeline. Inside this movie
    clip to be printed i have dynamic text fields...which link to the
    text fields which the users inputted data in, therefore both sets
    of text fields contain the same data, when you change one the other
    should change.
    I have set up a very simple printJob command to print out the
    movie clip named print_mc and it prints the page even the outline
    of the text boxes but it doesn't print out the content which
    appears on the screen. my code is attached below.......please if
    anyone could help i would be very grateful :)
    print_btn.onRelease = function() {
    _global.aOneVar =oneAPone.text;
    _global.aTwoVar =oneAPtwo.text;
    print_mc.gotoAndStop("2");
    var myPrintJob:PrintJob = new PrintJob();
    var result:Boolean = myPrintJob.start();
    if (result) {
    myPrintJob.addPage("print_mc", null, {printAsBitmap:false},
    2);
    myPrintJob.send();
    delete myPrintJob;
    } else {
    thanks

    erictomlinson,
    > So, if I turn off the xml/css and use htmlText to create
    > content for the text field, the text uses the embedded
    > font and is anti-aliased.
    I'm with ya. Presumably, then there's a font symbol in your
    Library,
    right? And its Linkage identifier is "arial_font"?
    > If I keep the xml/css but comment out embedFonts, then
    > the content works but is not anti-aliased.
    That's because your CSS calls for Franklin Gothic Book,
    which hasn't
    been imported into your Library as a font symbol (at least,
    you haven't said
    it has).
    > I need both of these to work at the same time.
    Give Franklin Gothic Book a Linkage identifier, and use that
    name in
    your CSS.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

Maybe you are looking for

  • How to pass environment variables to adf application?

    Hi, I Created form function with this settings to open my adf application: Type : SSWA plsql function Maint Mode = None Context : Resp Web HTML : test.jsp Web host: 192.168.1.30:8890 This works fine. But how can I pass environment variables as parame

  • Airport / Lynksis / Timewarner problem

    Hi all. Setup: Macbook aluminum 13" 2.4GHz + Linksys wireless router + Time Warner modem. Problem: At least twice a day (when I wake up and when I got back from work) my internet connection is gone. The airport is still connected to the wireless rout

  • Recovering iLife After Installation

    Hello, I wasn't really sure where to post this, but this seemed like my best bet for getting an answer.. I recently (well not actually that recently) upgraded from 10.4 to 10.5, the former of which came on my iMac when I bought it. Included along wit

  • How do you change the name of your nano in the new itunes

    How do you change the name of your nano in the new itunes

  • Auto Numbering Slides

    Does anyone know how to add auto numbering to slides. For example Slide 1 of 30? Thanks