How to create the link between the two drop-down lists

Hi all

I've created a form in which there are two drop-down lists.

Let's say a drop-down list contains three elements A, B, C

and another drop-down list contains three elements, Apple, banana and cherry.

So, my request is how to create a relationship between these two drop-down lists, so that if I choose 'A' in the 1st drop-down list, Apple will be selected automatically in the 2nd drop-down list.

Thank you

Stéphane

Hi Scott,.

Niall is great. You can also use a hidden field to update the second drop-down list value.

The first drop-down list change event script.

Select var = xfa.event.change;
var Items = List1.resolveNode("#items[0]").nodes;
for (var i = 0; i)
{
if(Select == items.) Item (i) .value)
{
break;
}
}

If (List1.Length > 1)

{

var Items_List2 = SecondDropdownlist.resolveNode("#items[0]").nodes;
HiddenTextField.rawValue = Items_List2.item (i) .value;
SecondDropdownlist.rawValue = HiddenTextField.rawValue;

}

Thank you

Sidonie.

Tags: Adobe LiveCycle

Similar Questions

  • How to make the menu drop-down list with a scroll bar

    Hello

    I have a drop-down list that is filled with different table sizes.

    I have a size of 30-element array.  Some of the last items just go off the screen at the bottom of the Simulator PB.

    Is it possible for me to add a drop-down scroll bar?

    DP = new DropDown();
    dp.rowHeight = 24;
    DP.prompt = "stuff";
    DP. Height = 34;
    DP.width = 230;
    DP.x = TitleTB.x + 170;
    DP.y = Title.y-3;
    addChild (dp);

    Some of the tables look like this-

    case 'List 1':
    dp.rowCount = 2;
    for (var i: int = 0; i<2;>
    {
    if(i==0)
    {
    DPP.splice (0);
    DPP.unshift({label:"blahblah"});)
    }
    else if (i == 1) {}
    DPP.unshift({label:"foofoo"});)
    }
    }
    dp.dataProvider = new DataProvider (dpp);
    addChild (dp);
    break;

    case "List2":
    dp.rowCount = 30;
    for (var n: int = 0; n<30;>
    {
    if(n==0)
    {
    DPP.splice (0);
    DPP.unshift({label:"lalalala"});)
    }
    Else if (n == 1) {}

    **********

    Delete the existing table using splice (0);

    then I add the new array of labels.

    Before, when I didn't have the splice (0), I only had the .unshift () and sometimes got bays combined together and a scroll bar appears automatically in the Simulator.  But then the berries were mixed.

    Thanks for the help!

    Hey mlin13,

    from the looks of it, your property rowCount is set too high. the rowCount property represents the number of lines displayed on the screen when the drop down menu is open. so if the number of rows is less than the amount of items on the list, it will create a scroll bar with a drop-down list for you. try to set the number of lines to a default value of 10 and and keep it manipulate your list from there. and see if you get the desired results. Good luck!

  • How to disable the address drop-down list when you write a new?

    I don't want my previous addresses drop-down list when I start to write a new one.

    • Firefox (Tools) > Options > privacy > address bar: when you use the location bar, suggest: nothing
  • How to remove the old google browser displays the start menu in the internet drop-down list box?

    Original title: Start menu

    When I go to the taskbar and start menu properties I go in Start menu, and then click Customize. then at the bottom where it says see the start menu in the box, it shows an old browser I don't have how to remove it is the browser drop-down list internet google ch

    Hi OliveBrook,

    You can try to uninstall entries of Google chrome under programs and features and check if it appears in the start option of Internet link menu.

    See the link below to uninstall a program.

    http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program

    Hope this information is useful.

  • If Google is my default search, can I go and change it if I want to do a search for GMaps; only the default is in the search drop-down list.

    If Google is my default search, can I go and change it if I want to do a search for GMaps; only the default is in the search drop-down list.
    So I have to change the default to Google Maps then back to Google to search for one.

    I have it! It's the topic: config "hiddenoneoffs" where the 3 elements of google, maps and mcafee have been included. There was no space between Google and maps. I put one in from Google Maps. She appeared in the first box-ff, but not sure about the search in the second time zone. I went back to the subject: one-offs. Safe search was shown with a space after Secure. I took out the space. Safe search arose in the 2nd single search box!
    Weird! This is contrary to how they show in the search parameters.
    Can I have messed that when Firefox has been reset all the search engines on an update, but I do not.
    Either incidentally, I tried to re-installation characteristic but the file comes down as a .dmg that I'm not familiar with and don't apparently is 8.0 to win because he couldn't open it. Thank you once again.

  • How can I use two drop-down lists for a time value?

    I want to enter the length of time someone did something in hours and minutes using two drop-down lists, then enter it as a time value only (├a) in Mysql.

    I used the dropdown database lists and a few different variations of what follows without success (seconds is a hidden field with a value of "00"):

    GetSQLValueString (strftime ("% H: % i: %s", strtotime ($_POST ["sleeptimemin"].))) " «. $_POST ['sleeptimehr']. » «. (_POST ["seconds"])) $, 'date').

    This comes back to 00:00:16, regardless of what is selected in the drop-down list.

    Any help would be appreciated.

    MySQL stores time in human-understandable format, using the 24-hour clock.

    GetSQLValueString($_POST['sleeptimehr'] . ':' . $_POST['sleeptimemin'] . ':00', "date"),
    
  • The firefox drop-down list in the upper left corner is missing

    I do not have the firefox drop-down list box in the upper left corner.

    View > toolbars = uncheck the Menu bar

  • How to pre-select an item in a drop-down list

    Hello

    I need to pre-select an item in a drop-down list, but I don't see how to achieve this using the current or existing methods.  I know that if I set the rawValue then it works, but later when I try to retrieve the data in the selected drop-down list the order of the day list, I get an 'empty' which does not help.  What he needs, is the value, the pair of label to work properly. When I manually select an item in the drop-down list, it works perfectly. But not when I try programtically set. So now I wonder if it is possible to set the index for the drop-down menu, so that he believes have a selected item, when I survey I get the correct value.

    Hope you can help.

    Kind regards

    Ian

    Hello

    You can use the selectedIndex property to set the desired value.

    And to retrieve a value, I recommend you to use *.getDisplayItem (*.selectedIndex);

    I hope this will help you!

  • connect two Drop Down list with the code name.

    Hello guys,.

    I have ' starting my LiveCiycle, I have trouble linking two fields in the drop-down list. How can I connect two fields drop-down list? For example, a user selector, the name of the professional and the other menu drop-down is updated with the code of work based on the choice of the name.

    Thank you.

    Take a look at the attachment. It's a way to achieve this. The result like this...

    Steve

  • How can I disable the menu drop-down list on the back button?

    I use a laptop and my hands are not too clever. Whenever I click on the 'back' button, I get the drop-down list, which means that I must then back up my hand to the pad (gently!) to move the pointer, and then try again. It may take me several attempts to turn back a site now!

    I searched for hours how activate the drop-down list, nothing is done and even looked through all the settings in: config to try to find a way around it. Seriously impact my ability to use my laptop on the web now, so if someone can you please come up with a way to return to the old back button, with no menu when my finger slow old cannot move pretty fast down the key, I would be very grateful.

    There are two other ways to return to a page.

    • Right click on a box empty page you visit and use the dos command
    • From the keyboard, press {Alt + left arrow}
  • OBIEE answers how to display the menu drop-down

    Hello
    In answers how to display the name that we choose in the drop-down list on the report page

    and another thing is that I want to display the number of lines in the report as report salary has 20 lines, followed by the 20 lines in the report

    Waiting for your answer.

    Rgrds,
    Bala

    Published by: user13068446 on May 13, 2010 22:30

    create a report and save it.

    now, to create a line of dashboard your wish to keep as it's the default SNA record the prompt of the dashboard.

    now, go to the dashboard - options - section drag and report him.

    now do drag the guest to this article and put this promp above the report...

    Save it
    Now you can see the drop down prompt menu selected

    Concerning

    J Mama Prasad

  • I don't like the new drop-down list of suggestions, how can I disable it?

    for some reason now in google search bar, there are suggestions of sites in a drop-down list when I type in the search bar. I don't like, it just started and I would like to know how to disable

    Thank you

    Heidi

    Disable search suggestions by right clicking the text field in the search bar and remove the mark in front of "Show Suggestions".

    Click the search engine button and open "manage search engines".

    At the bottom of this window, there is a box of [X] "see search suggestions."

  • How to remove the filter of the table drop-down list

    Hello

    Jdev: 12.1.3

    I have a table of readonly in my page. On the one hand of the column, I've defined LOV (VO attribute is ID and name will appear in the LOV) in the VO. So in the filter of the Table, he comes as a drop-down list. How can I change this drop-down list for the field of plain text.

    When the user types text in the search field and press ENTER, it must filter the table with the name you entered.

    1.JPG

    See you soon

    AJ

    Johny

    I made a few changes in your application, added a transitional and populated with lov accessor and applied the filter on departmentid of this transitional

    Check it out, in the same way, that you can do for other attributes

    In fact I think that it is the default when you apply lov on certain attribute and then filter works in this way, or you enter the string full or just the value of the id

    Ashish

  • How do you define a ToolTip to the ComboBox drop-down list?

    I have a box and drop-down list when the user opens I need display the ToolTip text on the drop-down list when the user hovers over them. Here is the code that I have that works:

    MyComboBox.addEventListener ("open", cmbOpen);

    private void cmbOpen (e:DropdownEvent): void {}
    MyComboBox.dropdown.showDataTips = true;
    MyComboBox.dropdown.dataTipFunction = comboDataTip;
    }

    public void comboDataTip (point: Object): String {}
    var temp_str:String = "";

    If (item.varValue! = null)
    temp_str = item.data
    Return temp_str;
    }

    The only way I could do this job is to assign it to the open event. Is there another way?

    Also... How to move the ToolTip text. It appears in the wrong place and I want to shift it to the right a little more... I tried this code, but the function is not called.

    MyComboBox.addEventListener ("toolTipShow", toolTipShow);
    and ive used
    MyComboBox.dropdown.addEventListener ("toolTipShow", toolTipShow);

    private void toolTipShow (e:ToolTipEvent): void {}
    trace ("e:" + e.target);
    trace ("e:" + e.toolTip);
    }

    I need tooltipshow function is called so I can adjust the ToolTips x and y coord...

    Any ideas?

    You can try to use a rendering engine inline with a Label component that manages the Tip:







  • How to: Disable the new 'Visit what you type' in the url drop-down list. FF 43

    So with the update of FF 43 Mozilla is still destroying my workflow. While browsing I have I'll especially out of muscle memory. And the new updated through upward in the top position most of the url drop-down the search with the option. I disabled that within 5 minutes but now instead of it's me give "visit"url what ever I can partially be hit". I wish that this new item disabled and can't seem to find an option for her.

    I never understood why the url bar allowed for searching the Web when there is already a dedicated search bar.

    You can set this pref to false on the topic: config page.

    • Browser.urlbar.unifiedcomplete = false

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

    Location drop-down menu bar may show items from the history, as well as pages of a bookmark and sites currently open in tabs.
    You can define what suggestions to show when you enter a URL in the address bar in "Options/Preferences > privacy".

    • Tools > Options > privacy > address bar: when you use the location bar, suggest:
      History
      Bookmarks
      Open tabs
    • choice of browser.urlbar.suggest.history.onlyTyped must be modified directly through the pref
    • choice of browser.urlbar.Suggest.Searches is present in Firefox 43 + as 'See the search in the location bar results suggestions' in "Options/Preferences > Search" in the search parameters

Maybe you are looking for