LiveCycle Designer 8.0 - Linked Drop Down Lists

Hi,
Im new to Adobe LiveCycle and trying to link two drop down lists. I want the second drop down list to have certain options visible, depending upon the choice selected in the first list.
I have spent a bit of time with JavaScript and trying to link them, however am struggling.
Can anyone advise?
TIA, Mike.

Hi Mike -
You can accomplish what you are describing with an array.
An example of what you are asking about can be found in the Live Cycle Interactive Purchase Order sample found at [installdir]\EN\Samples\Purchase Order\Interactive (at least that's where I found mine, I'm using Live Cycle Designer version 7).
There are two drop-down lists in this Purchase Order sample: Country and State/Province. Only two countries are listed for the purpose of the example however you can customize the script by adding other countries.
Look for the script object named 'countryScript'. It contains the logic invoked by the drop-down lists when the form is created and based on the user interaction.

Similar Messages

  • Adobe LiveCycle Designer working with 2 drop down list, one response triggers the other

    I am fairly new to Adobe LiveCycle Designer ES 8.2, but I would like to have a drop down list of managers and another drop down list of employees.
    I would like this set up in such a way where the manager can click on their own name in the manager list and have a drop down list appear which is only populated with their directly reporting employees.  They can then click on the individual employee they are going to report on.
    Then there will be several questions pertaining to the individual direct report, etc. (This part I can do)
    Is this possible?
    If so, please provide detailed instructions for me to try.
    Thank you in advance.

    Put this in the change event of your Manager drop down:
    var myObj={"Manager 1":"Employee A,Employee B,Employee C",
                        "Manager 2":"Employee D,Employee E",
                        "Manager 3":"Employee F,Employee G, Employee H"};
    DropDownList2.setItems(myObj[this.boundItem(xfa.event.newText)]);
    This is assuming the list of items in that dropdown is "Manager 1", "Manager 2", "Manager 3".
    And DropDownList2 is the name of your Employee drop down.
    Kyle

  • Designing a fillable PDF - drop-down list

    Designing a fillable PDF - how does one copy the content of the "text" box of one drop-down list to paste into "text" boxes of multiple drop-down lists for the same form?

    You can't copy and paste the values from the object palette definition but you can copy and paste the entire object...would that not do the same thing?
    Paul

  • Acrobat 9 pro designer -- how to populate drop down list

    I down loaded the acrobat 9 professional trial version and have been trying to see how I can create a drop down list where I can input 500 names. I created the drop down list but the problem is the following. To enter the names in the drop down list I have to type each one and hit enter then enter in the next. I have about 500 names to enter and doing one at at time is not efficient. I tried to copy all the names and paste it into the drop down list but it will only paste the first name.
    Does anyone know how I can enter 500 names all at once into a drop down list box?
    I need a simple solution that can be made without some complicated code.
    please email me [email protected]
    thanks
    Will

    thanks you for the response. I am not tech savy when it comes to javascript or form calc any chance you can give more details

  • Linked Drop Down Lists with a message box

    Hello all -
    I'm using Adobe Designer 7.0 and I've created a form with two linked dropdown lists. The second dropdown list displays certain options depending on what was selected from the first dropdown list. I based my dropdowns on the country/states dropdowns in the Interactive Purchase Order sample found at [installdir]\EN\Samples\Purchase Order\Interactive.
    But I also want to display a message box (with a helpful explanation) when the second dropdown list is clicked before making a selection from the first dropdown list. Right now, a tone sounds when that happens. I think it would be helpful to provide an explanation (in a message box) instead of just the tone.
    I tried this javascript on the second dropdown click event, but it displays the message box all the time, not just when the first dropdown was unselected:
    if (dropdownlist1.rawValue == " ");
    xfa.host.messageBox("Please choose a value from dropdownlist1 first.");
    Can anybody show me how to display the message box only when dropdownlist2 is clicked and a selection has not yet been made from dropdownlist1?

    The best thing is to dynamically build your where clause based on the user selection. Test the values of all form fields and if the user does not make a selection, do not include that in the where clause.
    Trying to build a single, static where clause that accounts for all possible user input permutations is extremely difficult.

  • Adobe LiveCycle Designer 8.1 Drop-Down List Problem

    I have an array of data.  I'm populating one drop-down list (Genus) with data and then trying to populate a second drop-down list (Species) based on the selection from the first drop-down list (Genus).<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><?xfa generator="AdobeLiveCycleDesigner_V8.0" APIVersion="2.5.6290.0"?><br /><xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2007-08-20T19:50:53Z" uuid="6f886dfc-03cb-474d-84ad-70c94bed1788"><br /><template xmlns="http://www.xfa.org/schema/xfa-template/2.5/"><br />   <subform allowMacro="1" layout="tb" locale="en_US" name="form1"><br />      <pageSet><br />         <pageArea id="Page1" name="Page1"><br />            <contentArea h="756pt" w="576pt" x="0.25in" y="0.25in"/><br />            <medium long="792pt" short="612pt" stock="default"/><br />            <?templateDesigner expand 1?></pageArea><br />         <?templateDesigner expand 1?></pageSet><br />      <subform h="756pt" w="576pt"><br />         <field h="8.6202mm" name="PrintButton1" relevant="-print" w="41.8956mm" x="158.7501mm" y="34.7904mm"><br />            <?templateDesigner isPrintObject true?><br />            <ui><br />               <button/><br />            </ui><br />            <font typeface="Myriad Pro"/><br />            <caption><br />               <value><br />                  <text>Print Form</text><br />               </value><br />               <para hAlign="center" vAlign="middle"/><br />               <font typeface="Myriad Pro"/><br />            </caption><br />            <border hand="right"><br />               <?templateDesigner StyleID apbx2?><br />               <edge stroke="raised"/><br />               <fill><br />                  <color value="212,208,200"/><br />               </fill><br />            </border><br />            <bind match="none"/><br />            <event activity="click"><br />               <script contentType="application/x-javascript">xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);</script><br />            </event><br />         </field><br />         <draw h="8.6202mm" name="StaticText1" w="128.9085mm" x="3.4391mm" y="0.3098mm"><br />            <ui><br />               <textEdit><br />               </textEdit><br />            </ui><br />            <value><br />               <text>CRP Request/Report Form for qPCR Analysis:</text><br />            </value><br />            <font size="14pt" typeface="Myriad Pro" weight="bold"/><br />            <margin bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm" topInset="0.5mm"/><br />            <traversal><br />               <traverse ref="DateTimeField1[0]"/><br />            </traversal><br />            <?renderCache.bounds 362576 21601 0 0 1417 1417 0 0?><br />            <?renderCache.textRun 42 CRP Request/Report Form for qPCR Analysis: 0 1417 11917 0 0 0 "Myriad Pro" 1 0 14000 ISO-8859-1?></draw><br />         <field h="7.7252mm" name="Req" w="77.6041mm" x="3.4391mm" y="8.9305mm"><br />            <ui><br />               <textEdit><br />                  <border><br />                     <?templateDesigner StyleID aped2?><br />                  </border><br />                  <margin/><br />               </textEdit><br />            </ui><br />            <font typeface="Myriad Pro"/><br />            <margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/><br />            <para vAlign="middle"/><br />            <caption reserve="26.19mm"><br />               <font baselineShift="0pt" typeface="Myriad Pro"/><br />               <para marginLeft="0pt" marginRight="0pt" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" vAlign="middle"/><br />               <value><br />                  <text>Requestor</text><br />               </value><br />            </caption><br />            <border><br />               <edge presence="hidden"/><br />               <corner presence="hidden" thickness="0.1778mm"/><br />            </border><br />            <traversal><br />               <traverse ref="Lot[0]"/><br />            </traversal><br />         </field><br />         <draw h="8.1758mm" name="StaticText2" w="18.6252mm" x="3.4391mm" y="17.5504mm"><br />            <ui><br />               <textEdit><br />               </textEdit><br />            </ui><br />            <va

    var constColNum = 10;
    var InfoDB = new Array
    new Array( "Bacillus","Brucella","Burkholderia","Coxiella","Clostridium", "Erwinia","Francisella","Yersinia","Rickettsia","Other"),
    new Array( "anthracis","cereus","thuringensis","subtilis","globigii","lichenformis","other"),
    new Array( "melitensis","suis","ovis","canis","abortus","neotomae"),
    new Array( "mallei","pseudomallei"),
    new Array( "burnetti","other"),
    new Array( "botulinum"),
    new Array( "herbicola"),
    new Array( "tularensis","holartica"),
    new Array( "pestis","pseudo TB","other"),
    new Array( "prowazekii"),
    new Array( "other"),
    new Array( "DHP61.183","cereus grp","sodA","tarA","omp25","IS407A","IS1111A","Cbot","aroQ","tul4"),
    new Array( "3A","Rprow4","capB,pagA,tarA","cereus grp, tarA","cereus grp, tarA, F1cap, pesticin, YopD","designed assay"),
    new Array( "0.1754","0.1718","0.1742","0.2164","0.2170","0.2778","0.1565","0.1255","0.4762","0.4808" ),
    new Array( "0.4831","0.8197","0.1976","0.1923","you figure it out")
    function LoadDropMenu(obj, rowNum)
    for(i = 0; i < constColNum; i++)
    obj.addItem(InfoDB [rowNum][i], i + "");
    function LoadDropMenu2(objDropDown, nIndex)
    var arrayInfoDB = InfoDB[nIndex];
    objDropDown.rawValue = "";
    objDropDown.clearItems();
    for (var i = 0; i < constColNum; i++)
    objDropDown.addItem(arrayInfoDB[i], i + "");
    //objDropDown.addItem(arrayInfoDB[i]);

  • In Firefox 4, how do I get back the context menu for the drop down list of the Location Bar so I can Open Link in New Tab, which I did often in FF 3?

    Firefox 3 has a context menu for the drop down list of
    the Location Bar. One option on this menu I used often
    is "Open Link in New Tab" -- quite convenient.
    This context menu has disappeared in Firefox 4.
    Can I get it back?

    See also:
    *Tools > Options > Privacy > History: "Remember search and form history"
    *https://support.mozilla.org/kb/Form+autocomplete
    The "Use custom settings for history" setting allows to see the current history and cookie settings, but selecting that setting doesn't make any changes to history and cookie settings.<br />
    Firefox shows the "Use custom settings for history" setting as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.<br />
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".<br />

  • How to link Files to different buttons in a drop-down list?

    I have 5 Excel files in folder. I want to link each file to each buttons in a Drop-Down List, so that when 1st button is clicked it opens 1st file, 2nd button opens second file etc..
    the buttons are given some titles.
    The file path should not be visible to the user. When a button in drop down list is clicked, it must confirm the file and open it.
    I am new to labview. Can anybody help me witha sample code?
    Sunitha

    Hello,
    I think you can get some ideas from this exemple.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    launcher.vi ‏89 KB

  • Linking two drop down list together

    I have two drop downs list and I need to link them together for the user to only answer one of them and it won't allow an answer in the other or vice versa. How can I set that up?
    If answer drop down list A then can't answer drop down list B
    else
    if drop down list B is answered then drop down list A can't be answered.

    The attached contains two drop-down lists - apples and oranges. Each drop-down list has a default list item value of " ", thus the default index is 0 (zero). If you select a value other than default, the other drop-down list has it's access protected and the list item reset to 0 (zero). Conversely, if you select the default value, the other drop-down list becomes open or accessible.
    // form1.page1.apples::exit - (JavaScript, client)
    if (form1.page1.apples.selectedIndex != 0) {
      form1.page1.oranges.access = "protected";
      form1.page1.oranges.selectedIndex = 0;
    else {
      form1.page1.oranges.access = "open";
    // form1.page1.oranges::exit - (JavaScript, client)
    if (form1.page1.oranges.selectedIndex != 0) {
      form1.page1.apples.access = "protected";
      form1.page1.apples.selectedIndex = 0;
    else {
      form1.page1.apples.access = "open";
    Steve

  • I wish to reinstall Adobe Creative Suite 6 Design Standard on a replacement PC using the original box CD and Serial Number. Website says SN is valid but cannot find corresponding Adobe product.  My product is not on the drop down list offered.  hat do I d

    I wish to reinstall Adobe Creative Suite 6 Design Standard on a replacement PC using the original box CD and Serial Number. Website says SN is valid but cannot find corresponding Adobe product.  My product is not on the drop down list offered.  What do I do next?

    Contact support by web chat.
    Mylenium

  • Creating a drop down list and linking it to Excel files

    How to create a drop down list and when i select any row in the dropdown list, it must open designated MS- Excel file? Can anyone help me in this with an example code?
    Thanks
    Anu

    Try this in 7.0 format.
    Attachments:
    Listbox for excel files.vi ‏15 KB

  • SAP Design Studio 1.2 sp01 Filters logic is required for drop down list component

    Hi all,
                   I am working with sap ds 1.2 sp01,In dropdown list, assume it has X,Y,Z. So defaulty it shows first  "X' value in Dropdown list , but in Croos tab from DS_1, it is not related to "x" value, it shows overall Values In formation,but i want "x" value Information.. How can i get in DS?, PLEASE HELP ME OUT.
    .below logics i applied in drop down list component.
                 DS_1.setFilter("Dimension Name", DROPDOWN_1.getSelectedValue());
    and below logic in Application on Startup event:
    DROPDOWN_1.setItems(DS_1.getMemberList("dimension name", MemberPresentation.INTERNAL_KEY, MemberDisplay.KEY, 10));
    Thanks
    Thiru.G

    Hi,
    Try adding "DS_1.setFilter("Dimension Name", DROPDOWN_1.getSelectedValue()); " after
    "DROPDOWN_1.setItems(DS_1.getMemberList("dimension name", MemberPresentation.INTERNAL_KEY, MemberDisplay.KEY, 10));"
    on startup event too.  You should tell the application that you need to filter the data, even if you don't select it manually from the dropbox, in other words ; on startup. 
    Regards,
    Onur

  • Adobe LiveCycle Drop Down List which allows typing to filter the values in a Drop Down list

    I have a drop down list in my form with contains a lot of different numbers, text, countries, cities and states, etc.
    I would like the user to either have the option to only use the drop down list or they can type "Zapple" or any portion and have it populate the value.
    Is there a setting or code which I can use which will do this?
    Currently, if the user types the first letter or number it will take them to the beginning of the list (since I have them listed alphabetically/numerically), but I'd prefer they can type beyond the first character and pinpoint the option they're looking for.
    Thank you for any help

    The whole sample will need to be updated. As I said in the email it can be done but it will be complex. This particular sample requires an external xml file. You will need to pull this from data in the form.

  • Interactive Drop Down (linking drop downs to other documents)

    Hello all, thanks in advance.
    I am trying to basically create a drop down list, which links to other documents. Imagine for example you have a drop down box that contains a load of different options, "1" "2" "3" etc. after chosing one, you then click on a button which takes you to the PDF, which 1 2 or 3 corresponds to.
    I have made the drop down list but now I am at a loss of what to do from here, is it possible to make each individual selection (1 2 or 3) have a seperate action or will I have to write some kind of code to be able to achieve this. If that's the case, I wonder if someone like me, who has no understanding of code would be able to write in such a command. Anyway thanks again for all your potential help!
    sincerely,
    Elliot

    HI Elliot,
    This is possible however not by PDF Pack subscription, this can be achieved by LC Designer as we can wite code in there to achieve the goal. If you have LC Designer with you i would request you post your query in LC Designer forum.
    http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es
    if you do not have LiveCycle designer i would request you to visit LiveCycle page for more details
    http://www.adobe.com/products/livecycle/tools/designer.html
    let me know if you require any help
    Regards,
    ~Pranav

  • Is it possible to allow use to type entry into a drop down list box ?

    Hi ,
    Is it possible to provide  type in the value option ( provide option to user like he can select a value from the extracted data in a drop down list object and also he can enter a value manually ) to a drop down list box on an interactive form ?
    Nanda

    Hello Nanda,
    In the Adobe LiveCycle Designer you can specify several list items for objects of type 'Drop-down List' and it is also possible to allow custom entries (checkbox: "Allow Custom Text Entry").
    Regards,
    Philipp

Maybe you are looking for