How to have a single list of items in drop-down lists separated?

Software: Acrobat X (10) pro Windows

I want to create a form pdf in which drop all lists are filled with the same list of items to choose from. If I use the same field name for all drop-down lists, the selected item in a menu drop-down is automatically selected for all lists. This is not what I want. I want to be able to select an element that is unique and different in each drop-down list. I could of course keep lists of items for each field (using the separated field names) but a waste of time!... especially since the field lists must be updated separately. There must be a better way to do it.

Any idea how this could be done? Thank you.

Here's a sample script that defines a list of items in a table first and uses it to update a number of drop-down menus, name dd1... dd10:

Fill a table with list items

var aItems = ["--select a State--", "Alaska", "Hawaii", "Washington", "Oregon", "Idaho", "Montana", "Wyoming", "Nevada", "Colorado", "Arizona", "New Mexico"];

Browse the menus...

for (var i = 1; i)< 11;="" i="" +="1)">

.. .and set the list items

getField ("dd" + i) .setItems (aItems);

}

That's all there is to it. This can be run from the mouse event to the top of a temporary button you create, (Ctrl + J) interactive JavaScript console, etc.

More information on setItems: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.752.html

Tags: Acrobat

Similar Questions

  • How to fill a text box after selecting a drop down list?

    I have created a form that has a drop-down list with different types of products. After a person chooses a product in the menu I would fill the text box with a description of the product.  I'm a newbie here, but I thought that was far from using JavaScript to do this. But wasn't sure exactly where to put the code and do I have to put it on the text box or drop-down list. Any help would be appreciated Ive been looking everywhere for a week and can find an answer.

    If (xfa.event.newText == "")
    {TextField1.rawValue =""}

    "On your drop-down list by using Java Script on the * change event.

    If you have three items in your list:

    A

    B

    C

    If (xfa.event.newText == "A")
    {TextField1.rawValue = "You chose the letter A"}

    If (xfa.event.newText == "B")
    {TextField1.rawValue = "You chose the letter B"}

    If (xfa.event.newText == "C")
    {TextField1.rawValue = 'You chose the letter C'}

  • How to delete a contact in the menu 'To' drop down when starting a new email?

    How to delete a contact in the menu 'To' drop down when starting a new email?  Email is no longer in my list of contacts, but he continues to appear in the menu drop down and too often I am wrong send something to the wrong email since it is at the top of the drop-down list.

    2 possibilities:

    1. you have an invitation, that you still need to answer. The name stays on until you refuse the invitation. Then it will go away.

    Open outlook.com > top left, place your cursor on the Outlook logo > an arrow will appear > click on the arrow > click on people > here's the window of your people.
    Toolbar at the top, click on manage the > click on View Invitations > do you see an invitation? If so, decline the prompt will remove the names of th.
    2. There may be a suggestion of the application of the 'AutoComplete suggestion» It gives you the names so that you, at the same time, sent emails.
    You can remove this suggestion by doing this...

    Open outlook.com > top right, next to your name, click on the gear icon > click on e-mail settings more > under customization of Outlook, click Advanced Privacy settings > click the front point 'Only suggest people in my contact list' > click on save when finished.

    t-4-2

  • No folder clickon Downloads Download arrow and goes to bookmarks and nothing is there, how to make the downloads folder backinto top right drop-down arrow

    No download file click on downloads, arrow and go to bookmarks and nothing is there at - it how do the downloads folder to return in the drop down menu top-right arrow here's a jing video to question how can I get my downloads folder to the drop-down arrow? http://screencast.com/t/VakYaSNi

  • How the auto fill a field based on the drop-down list unless the specific item is selected

    Hi all

    My apologies if I posted this in in the wrong place, but I am new to these forums, JavaScript and Adobe LiveCycle.

    I am trying to build a form using LiveCycle Acrobat but have problems with the drop-down lists.

    Inititaly I just wanted to fill in the fields in a table based on a matching menu selection dropdown in another table.

    I used the following code and it worked fine:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    The problem is that now I want the code above works UNLESS one of the items in the drop-down list is enabled specifically in this case, I want the text box in the other table to display a message such as "Details of the entry in the field below.

    I tried to create an If Else statement using the following code:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    If (fFrom.item (i) .rawvalue = "Option 3") {}

    fTo.item (i) .rawValue = "enter the details in the field below.

    }

    else {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    }

    The code now filled the field with "Enter the details in the field below" any item I select in the drop-down list.

    Your help is greatly appreciated.

    See you soon,.

    ozzy_q

    Hello

    You use .rawValue in the change event. This will cause problems because the selection of the users has not received .rawValue from the drop-down list at the time when the change event is triggered.

    Move your script as it should to the output of the dropdown event.

    Hope that helps,

    Niall

  • I do not have a Bookmarks Manager option in my drop-down list of bookmarks, how do I enter?

    I use Firefox 4.0 and don't see a bookmark option Manager when I use the bookmarks drop down. How can I access it? I want to transfer my favorites on a new computer and want to use the export/import feature.

    It's called show all bookmarks in 4.o + Firefox versions.

  • How to change or remove a line from a drop down list?

    I have a spreadsheet Numbers drop down box that shows the 3 lines of the text when I start typing the text in the cell. I have to enter the same text 3 times during the construction of the document. How can I remove 2 of these lines of text?

    Hi Brudduh,

    Click the cell that contains the context menu,

    Click on the brush to Format to open the Format Inspector and click cell.

    The Inspector displays the menu items in the context Menu in this cell.

    • To remove a menu item: click on the item to select. Click the button below the list.
    • To edit an item: double-click on the item to select content. Modify if needed.
    • To add an item: click on the button +. Type the content of the element.

    To use the same drop-down list in a different cell:

    • Click the cell that contains the menu to select. Copy.
    • Select the cells to the same menu. Dough.

    Kind regards

    Barry

  • How do complete you 1 text box with multiple drop-down list values

    I can fill in a text box with a value in a drop-down list, but if I have 2 drop-down list values going to the same area of text (multiple lines), the second drop-down list value removes the first value.

    (A similar code on the drop-down list 1 and 2 from the drop-down list)

    Change event - JavaScript

    If (xfa.event.newText == 'No') {}

    Form1.Page1.subform2.Description.RawValue = "no location listed.

    }

    If (xfa.event.newText == "Partial renting") {}

    Form1.Page1.subform2.Description.RawValue = "enumerated part place."

    }

    Do I have to Concat the fields in 1 text field so that it can have several values in drop-down list, and if so how do I do that?

    Thanks in advance for your help.

    Resolved:

    Place this script in the root of the subform in the FormReady - JavaScript event.

    oList var = this.getDeltas ();

    for (i = 0; i< olist.length;="" i="">

    {

    var oDelta = oList.item (i);

    oDelta.restore ();

    }

    Answer was found at http://forms.stefcameron.com/2008/09/29/restoring-the-of-your-form/

  • 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 can I add multi line selection in a drop-down list

    I just started with Acrobat DC. Everything is simple, until it isn't. I try to add items to my drop-down list. It's easy. I'm trying to make the choice of multi line. It is an inspection report and the choice will not fit on a single line. So after making the choice, can not read the answer. Thank you-Tim

    It is possible to do it, but only with a script and it's a kind of buggy. In other words, not really a good idea.

  • How can I get SmugMug if displayed in the drop-down list Photoshop elements part?

    I've been Googling it and see the many sites showing screenshots of Photoshop Elements 14 with SmugMug in the drop-down list on the organizer part - but it's not in mine, I can't find how to get it.

    It has been deleted?  Is it possible to install it?

    Any help would be appreciated.  Thank you.

    I am in the United Kingdom but need to change my location. Reach:

    Edit > preferences > country selection (menu Organizer items on mac)

    Set up the United States and SmugMug to become available.

  • Custom draw items from drop-down list

    Hi all

    I'm working on the CS6 plugins portage CC, 2014.

    A question, I am puzzled, is that with CS6, I'm able to customize the drawing behavior of elements within a drop-down list, by substituting the methods in 'IOwnderDrawItem', which was grouped on "kDropDownListWidgetBoss".

    But it seems that with the SDK of CC,

    -The "IOwnerDrawItem" is aggregated is "kDropDownListWidgetBoss", and

    -The "IOwnerDrawItem" no longer has the "DrawItem" method

    The porting guide does not seem to provide a solution to this. I am looking for help on how I can achieve this with CC.

    Thank you very much.

    -Jeff

    I think I found the solution/work around for this. Just display back here as I do see there are a lot of viewers and hope that this would help others who run in the same question.

    Basically, I think that the previous SDK allowed "DrawItem" that essentially provided a quick shortcut to allow a custom drawing of elements within a drop-down list content of the string. Inside the implementation of the method, you would need to enter the contents of the string of the item to retrieve more specific domain based on the chain, and point out things.

    And with the SDK of CC, it seems he wants to discourage this shortcut and promote encapsulation from the drop-down list items. So now, you declare a type of custom widget (extension "kBaseWidgetBoss"), which includes a custom implementation of 'IID_ICONTROLVIEW', which makes the custom drawing. And during the filling of the drop-down list, you will need to create instances of the custom widget type, then put them in the drop-down list list dropdown controller via.

    And for the drop-down list, you can declare your custom type by the extension "kOwnerDrawDDListWidgetBoss", where you can then provide a custom implementation of "IID_IOWNERDRAWITEM", to reach the specific item measure needs.

    I think that it is good intention and cleaner, just I wanted there was more clear instructions in the porting guide.

    -Jeff

  • How to remove the Windows account Journal in the drop-down list of names which are wrong

    My Windows in the drop-down list log has several wrong names that I would like to delete. These were errors of spelling or in a case not hittiing the tab before you ertering my password.

    When you click the start planet, then help, then search for help on "User account", then you will find complete guides on any topic related to user accounts.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-security/how-to-delete-user-IDs-on-drop-down-menus-from-for/571140c5-2332-4dc7-ba68-e55e14e5ac13

  • How can I remove a tool preset in the drop down list?

    I find the predefined tools so confused. I've created several toolkits and one I want to delete in the drop-down list. How can I do this?  I lost so much time trying to understand this. You are my last resort.

    Thank you!

    To remove all remove my Paint Tools.tpl file located in the Tools folder the slot location. You can also navigate to the folder the crib of Preset tools by selecting 'Load predefined tools', and then remove the .tpl file. You will need to restart PS to load the Preset change.

    Default memory

    The default location to save/load/replace the predefined settings depends on your operating system.

    • Windows 7 and Windows Vista: [drive]: \Users\\AppData\Roaming\Adobe\Adobe Photoshop [version_number]\Presets.
    • Mac: Library/Application Support/Adobe/AdobePhotoshop [version_number]/ Presets.
  • How to make elements visible but inaccessible in a drop-down list

    I have dropdown1 with articles1-3.  I have dropdown2 with 1-10 items.  Item1 selected in dropdown1 I want dropdown2 to display all 10 points, but certain items inaccessible (dimmed) and not selectable.

    (example)

    Item1 = 1 to the [dropdown2] = select

    point 2 of the [dropdown2] = select

    point 3 of the [dropdown2] = select

    point 4 of the unselectable = [dropdown2]

    point 5 of the [dropdown2] = select

    point 6 of the unselectable = [dropdown2]

    and so on.

    I coded dropdown2 to fill based on selected items of dropdown1 but the problem is that the user needs to see options that are not available for selection?

    I am very new to FormCalc & Java any help would be greatly appreciated!  I am using LiveCycle Designer ES 8.2

    With your help, I got it working now.  I played a bit with your example here is your example changed from what I was trying to accomplish... https://DL.dropbox.com/u/12892158/Limit_DDL_Selection.PDF   Thank you for your help.

Maybe you are looking for