Help needed on the links between drop-down list boxes

Hello

I use 8 adobe life cycle designer to make shapes. These forms are usesd to collect information on people working in the health sector.

I want to use drop-down lists that are "connected". According to the choice made in the first box, the user will receive new options in the second box.

Example:

Dropbox 1

Values

-value 1

-value 2

-value 3

Dropbox 2

If the value of things 1 user, they can choose the following values in dropbox 2:

-Value has

-Value B

If the value of things 2 user, they can choose the following values in dropbox 2:

-Value C

-Value D

If the value of things 3 user, they can choose the following values in dropbox 2:

-Value E

-Value F

I've been puzzeling for awhile, but impossible to find the solution for this.

Thanks in advance

Daniel

I'm compatible pdf for ES 8. Now we work. https://workspaces.Acrobat.com/?d=qBsk3hERFH2RcSn5vQ5rBg

When the script does not check

scripting language - javascript

ObjectName - is your identical objectname (when your dd called dd_choice2 or dropbox_2, then you must modify the script)

case "123":
        dropbox_2.clearItems();
        dropbox_2.addItem("Please select a value");
        dropbox_2.addItem("456");
        dropbox_2.addItem("789");
        dropbox_2.selectedIndex = 0;
        break;

The behavior is correct when you copy them.

You select '123 '.

2 JJ '456' and '678 '.

You select "456".

2 JJ "123" and "678".

You select "678".

2 JJ '456' and '678 '.

Please give your feedback tomorrow if it's work.

Kind regards Mandy

Tags: Adobe LiveCycle

Similar Questions

  • Select the string table drop-down list box.

    Hi all

    I want to select the combo box list based on a string in the entry, I don't know how to do this. I have a drop-down list box and the value comes from a database, what I want to do is I want to change the value of the selected box based on the existing value in the database drop-down list. for example, A, B, C D I strings in the drop-down list box, and then in my database, I have a field with the string C, I want to change the C to A. I can't enter the value of C in a string format, but I don't know how to be the first position of the drop-down list box in so the order of channels combo box will be C, A, B, d., the value of C

    Thank you

    Then just write a new array of strings, with the elements of the new agenda, to the "[] strings" - property.

    Either you must code something that allows you to create an array of strings with the elements in the order that you want them to be. If there is a reorganization only, you could do something like:

    -Get the array of strings [] from the drop-down list using a property node box.

    -Find the position of the element you want to place first and use "delete from table", which returns the new array and the element removed.

    -Build a new table 1 d of the deleted item and table remaining. Move to the second combobox Strings [] property of a node property.

  • Restrict the dataProvider of drop-down list box to display a field.

    Hello

    I wonder if there is a way to use an ArrayCollection collection as the dataProvider for a ComboBox but only allows him to display a field as you can do with a DataGrid control by using the dataField on the column definition property.

    So, let's say I have a collection of letters and numbers ArrayCollection, and I want the ComboBox control to display only the letters.  Is it possible to specify this?

    Thank you!

    Use the labelField property to specify the field of ComboBox dataProvider to display in the ComboBox control.

    This means that you have the items in the collection ArrayCollection which are objects or XML, etc.

    If this post answers your question or assistance, please mark it as such.

  • Command to refresh a calculated field when you select an option from the drop-down list box

    When my form user selects an option in a drop-down list box, the value in the field (in this case, Total) I would like to update, but it isn't.

    A radio button option box makes the Total-development field to automatic update when the user clicks on the radio button. But the drop-down list box is not updated Total (without clicking away from the field). I would like to add a command in the Combo Box to refresh the Total field when you selected the option to drop-down list box.

    Someone at - it a code (Javascript?) to get there.

    Thank you very much.

    You don't need a script, simply select the 'Value selected to validate immediately' checkbox on the Options tab of the dialog list box drop-down list box field properties.

  • A drop-down list box, two text boxes

    Hi all, I feel a bit silly to ask what she should be very simple, right? I have the a combo, the solution box a text down pat. For example when the user select name of the staff member in the drop down menu, it fills the phone number of this person in Textbox1.

    I would like to add to this so that when a user selects (and here I use false details) "Bob," he filled before his phone number in Textbox1 and "[email protected]" in Textbox2 simultaneously. Simply impossible to find the solution of anywhere.

    So far, I have used the code next (on the net) in the scripts of strike of the custom from the drop-down list box, but how I lay on it?

    (function () {}

    Do nothing if it is committed
    If (event.willCommit) return;

    Set up a table to hold the various paragraphs of the text
    var aQuotes = [];

    Fill the table with the text of paragraph
    aQuotes [0] = "bob phone"
    aQuotes [1] = 'sarah phone'
    aQuotes [2] = "phone linda".
    aQuotes [3] = "phone jerry."
    aQuotes [4] = "phone of mary".
    aQuotes [5] = 'phone jessie. "

    Get the selected item, which is the value of exports of the selected drop-down list box item
    var point = event.changeEx

    Display the text corresponding to the selected item in the text field
    getField("ITC_Phone").value is aQuotes [point];.

    })();

    Bravo guys.

    Like this:

    Custom script from typo to the drop-down list box (dropdown)

    (function () {}

    Do nothing if it is committed

    If (event.willCommit) return;

    Set up a table to hold the various paragraphs of the text

    var aQuotes = [];

    Complete the tables table of telephone and e-mail addresses

    aQuotes [0] = ['phone of bob', "[email protected]" ""];

    aQuotes [1] = ["sarah phone", "[email protected]" ""];

    aQuotes [2] = ["phone linda", "[email protected]" ""];

    aQuotes [3] = ['phone jerry', "[email protected]" ""];

    aQuotes [4] = ['phone mary', "[email protected]" ""];

    aQuotes [5] = ["phone jessie", "[email protected]" ""];

    Get the selected item, which is the value of exports of the selected drop-down list box item

    var point = event.changeEx;

    Display the text corresponding to the selected item in the text field

    getField("ITC_Phone").value = aQuotes [item] [0];

    getField("ITC_Email").value = aQuotes [item] [1];

    })();

    This code assumes that the value of exports of the items in drop-down list box is 0, 1, 2, 3...

    If there is much more that the aQuotes table should really be defiined in a JavaScript file at the level of the document if you are concerned about performance and maintainability.

  • Selection in the drop-down list box determines the text to display in another box - ideas?

    Hello, my name is Zac.  I spent a lot of time trying to figure this one out for myself, but I couldn't find what I needed.  A few threads looked promising, but I realized that they only apply to the LiveCycle.  Many other threads link to discussion 2006 Thom Parker on this subject, but it is very advanced and I feel that what I need is not as complex as the solution he proposes.  I've never used Adobe Acrobat until a few weeks ago, but with the help of Bernd Alheit and George Johnson I managed to create a document with fly-out help windows and scrolling lists and radio buttons which dictate the choice.  It's great and it works.  The last thing I have to do is to create a text box (or some kind of box) which will display a pre-written block of text based on the user choice in another area (a drop-down list box).  Like this:

    image for forums 2.PNG

    I wish, it is also easy to create because it draw a picture of him!  If the user selects "Algebra 1", for example, a specific description display below.  There are a lot of courses and descriptions, and the descriptions are long enough (as shown).  It is not necessary for the user to make changes to the description - in fact, which would be terrible.  But I would like to be able to copy text from it and paste the text in another area of text on the same page.

    Thank you very much, all those who have ideas please share them! Again wild guesses. I learn from all this.

    -Zac

    This involves using a script. If you want to write the code yourself read this tutorial:

    https://acrobatusers.com/tutorials/change_another_field

    If you don't feel like messing around with the code, you can use this tool that I developed to easily set up with the help of an input file:

    Scripts custom Adobe: Acrobat - fill the drop-down list

  • Modification of the properties-type def drop-down list box

    I have a group of 32 cases of a def type. The def type contains several different types of control. What I have to do is to change the properties of the list box for each of the type defs. Normally, I would create an array of references to change the properties for each of the type defs, but when I try this I can not access the properties of string [] for combo box selections. The only way I found to fix it is to create a reference for each individual drop-down list box item. It is labour, since I'll have 32 elements. Is there a way to beeter to do this? The first screenshot shows the issui I'll have, not being able to change the properties of specific elements within each of the def type at runtime through a control [] array. The second screenshot shows the only solution I've found so far, which is not very practical.

    You will need to set up (for a more specific class) control to a type of combo box for the particular control [] index that has the combobox control if you want to access the drop-down list.

    You can also access the combobox in a cluster based directly, rigth click on the control reference and a link to the element cluster directly.

    The last option is to make the strictt of typdef will fill all instances with the channel list [] given that it is a strict property.

    the approach is based on the weather, you plan on changing the list during execution.

  • Drop-down list box to choose a name and have just the first name see

    I have created a form for health care.

    I have a drop down box with names of doctors... their full names so that they are easily recognizable. And the following fields, then who will fill based on choice. However what I need is that, after the first and last name in the drop-down list is selected that only the name of the Dominican Republic first arises in the area which will be distributed through the file. Information is already using this Java:

    {Switch (this.) RawValue)}

    case "MD":

    Form1. Page1.Physician1LastName.RawValue = "Robert";

    Form1. Page1.Physician1Number.RawValue = "1111111111";

    Form1. Page1.Physician1Fax.RawValue = "2222222222;

    form1. Page1.ClientEmail.RawValue = "[email protected]"; ""

    Form1. Page1.Physician1Address.RawValue = "xyz suite."

    Form1. Page1.Physician1City.RawValue = "XYY Iquelqu";

    Form1. Page1.Physician1State.RawValue = "XZ";

    Form1. Page1.Physician1Zip.RawValue = "11111";

    Form1. Page1.Physician1NPI.RawValue = "111111111";

    Form1. Page1.Physician1License.RawValue = "ABBB111111";

    Form1. Page1.Physician1UPIN.RawValue = "A11111";

    Form1. Page1.Physician1Specialization.RawValue = 'internist ';

    break;

    }

    And works beautifully thanks to previous help everyone.

    Here is the example of the choices in drop-down list:

    Dr. Aaaaa Abb Accccc

    Dr. ranya Bbb Bccccc

    I like to choose:

    Dr. Aaaaa Aaaaa has

    and you select it it show only the first name in this area, so it can be properly treated by the rest of the fields.

    IE: Aaaaa (nothing else)

    I'm a horrible things like I just surf around until I find something that works and copy and paste and play until it works

    So please be specific:

    Java vs form: customer: choice and code...

    Thank you very much...

    Take a look at the attachment. The script assumes that the name is a string of three parts as Dr. Frank Burns. You can change it according to your needs.

    Form1.Page1.DD::exit - (JavaScript, client)

    If (this.rawValue! = null) {}

    var doc = this.rawValue;

    var i = doc.indexOf("");

    doc = doc.substring (i + 1, doc.length);

    this.rawValue = doc.substring (0, doc.indexOf(""));

    }

    Steve

  • Change the number of items in the drop-down list box when running

    I'm trying to change the number of items in one of my boxes of comobo.

    I have been through the help and this forum and have the values to within the drop-down list box change very well, but in a scenario, I want to go to three options for 2. And according to other choices to 3.

    I guess I have to use a property node but I can't understand that one.

    You can use the method to reset to zero (using an invoke node) before setting the [Strings] (after setting the value by default an empty array) or create an Xcontrol (you can see examples of LabVIEW for xcontrol).

    Ben64

  • Display all items or all files in the drop-DOWN list BOX

    Hello

    How to show the total files available in the drop-down list box by scrolling.

    In my project, I have to store the Daq measurement values in file.

    Later, I need to plot a graph since the values of a specified file.

    For this I need to select a file from the number of files.

    Give an idea or a sample program.

    Kind regards

    Hari

    Hi hari,.

    I couldn't open your vi I use Labview 8.5.

    See vi attached with this post.

  • Data from the drop-down list box database

    Hello

    I'm trying to understand how to add information from a database to a drop-down list box. I read two columns, the first is used as the element and the second for the value. There are several lines in the table, and I need an entry for each. Currently, he adds only a single entry. The vi is attached.

    Thank you

    Chris

    Hi again,

    Attach a VI... Is that what you mean?

  • Can anyone help please if a drop-down list box with this dpdCategory.Items.Insert (0, "user")?

    can someone please help if a drop-down list box with this dpdCategory.Items.Insert (0, "user"); If I choose the user then after clicking the button, it will redirect to this page & also, others using if else statement

    Please ask this question in one of the Windows Apps development forums:

    http://social.msdn.Microsoft.com/forums/en-us/category/windowsapps

  • How to add a destination folder in the drop-down list box "send to" in Windows XP?

    One of my disks in CD does not work, so I want to add the DVD drive in the drop-down list box... I can't remember how.

    Hello

    This article can help...

    http://support.Microsoft.com/kb/310270

    Tricky

  • Automatically populate a drop-down list by using another selection from the drop-down list box

    New java/preparation forms so I apologize in advance.

    I currently have a menu drop-down box 1 (Occupation) with three options: "enter your own description/blank", retired housewife. When someone chooses either retirement or anyone at home, I would another drop box 2 (employer) to assign automatically "n/a. . The employer drop box has only two options: "enter your own/blank", N/A.

    Far, I could for that box to fill but only when the person clicks in the box (as if they were about to enter their own text.) Then only it will fill the drop-down list "employer." I would like it auto fill once the person has chosen retired, Virgin or stay-at-home woman without having to enter in the box (just using the arrow to the size of the drop-down list box).

    I currently have a key shot that resets the employer box when a person chooses the option vacuum/enter your own option. I then a JavaScript (only for the housewife now) that only works if you click the box of. Key combination works I want to than the other options work as well. If the client settles on white, the choice of the employer updates automatically empty without having to click in the box of. Any help (including general advice to make my code cleaner) is very appreciated!

    Current script of typing:

    If {(event.willCommit)

    If (event.value == "") this.resetForm (["use"]); of other SetFieldValues (event.value);

    }

    The current upward, mice running JavaScript :

    var v = this.getField ("Occupation") .value

    If (v is "Housewife")

    1. this.getField("Employer").value = "N/a".

    I think maybe I should use event.willCommit in my formula, but I'm not sure how to include it.

    Thank you!

    I would not use the key sequence or MouseUp actions for this, but the action post.

    Just make sure that you set the field option to validate the selected value immediately (under Properties - Options) and then use this code as the custom validation script:

    var employerField = this.getField("Employer");
    if (event.value=="Homemaker" || event.value=="Retired")
        employerField.value = "N/A";
    else employerField.value = employerField.defaultValue;
    
  • Installed Adobe export in PDF and nothing comes up under the top right drop-down list export in PDF format

    Installed Adobe export in PDF and nothing comes up under the top right drop-down list export in PDF format

    Hi grahame52757429,

    Try to 'Repair Installation' under the menu help.

    Make sure you have last DC of Reader Acrobat installed on your system.

    In the meantime you can also use service to export in PDF format online. https://cloud.Acrobat.com/EXPORTPDF

    Kind regards

    Meenakshi

Maybe you are looking for