Initialize a drop-down combo box values in a list?

I have a list of text values in a pdf Adobe XI.  I have about a dozen of the drop-down list boxes that I want to fill in the list.  I tried the following in terms of document javascript for the first drop-down list box:

for (var i = 0; i < myList.length; i ++) myCombo.addItem (myList [i] [0] m:System.NET.SocketAddress.ToString ());

It is the right syntax do what I am trying to accomplish?

N ° there is no method called addItem(), only setItems().

If myList is an array of strings, all you have to do is:

myCombo.setItems (myList);

Tags: Acrobat

Similar Questions

  • Additional mouse click required to set other combo box values based on the current selection combo box

    I have an Acrobat PDF form where there are 8 combo boxes (not editable) which are related in a logical way, but have unique names and a list of unique values, with the exception of a default value that represents 'null' or 'none '.

    for example:

    The first 1 combo box value is "none" followed by the value A1, B1, C1, etc., and Combo box 2 the first value is 'none' followed of the values A2, B2, C2, etc...

    The combined list useful values for every combo boxes relate to the types of unique product for the user to select mode 'radio button '.

    When the user selects one of the 8 Combo boxes and performs one selection other than 'none', then the form must verify the 7 other combo boxes and when any current value is not equal to 'none', he has to change 'None '.

    The following script is currently enrolled in the properties of "Actions - Mouse Run - Up a Javascript" from one of the drop-down list boxes, others have similar scripts as well.

    (var cbox is the current combo box and var obox is for other drop-down list boxes when called).

    Cbox var = this.getField ("TagStyleStake");

    If (cbox.value! = "none")

    {

    obox var = this.getField ("TagStyleBasket");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStylePushon");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleHandle");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleHang");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleBlank");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleMolded");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    Obox = this.getField("TagStyleSignage");

    If (obox.value! = "none")

    {obox.value = 'none' ;}

    }

    The current problem is that, when a Combo is selected and one option other than the 'none' value is clicked, the other combo boxes do not include the 'None' value.

    To reset the other combo boxes requires another click on the option which has just been moved to the position selected in the drop-down list, but it seems reasonable that the drop-down list boxes should reset with the initial click the option in the drop-down list.

    I tried other properties (Format, validate, Calculate) but without success.

    What I'm missing here?

    The normal way to proceed is to define "value option selected to validate immediately" and to place the code in the event of the combo box button. And instead of the first two lines you have, you need to use something like:

    If (! event.willCommit & event.changeEx! == 'none') {}

    Your other code goes here

    }

    The changeEx property returns the value of exports, if any, for the selected item.

  • Combo box values

    Hello

    I have a script that is not what I expect it to do.

    I have 2 list boxes drop-down and based on the value of the first combo ('Subject.1' (value: 1, 2, or 3)) the second combo shows or hides 1 or several fields (up to 9 in total).

    Here is my code (custom validation script), I thought it was ok:

    var a = this.getField ("Step.0.0")
    var b = this.getField ("Step.1.0")
    var c = this.getField ("Step.2.0")

    var d = this.getField ("Step.0.1")
    var e = this.getField ("Step.1.1")
    var f = this.getField ("Step.2.1")

    var g = this.getField ("Step.0.2")
    var h = this.getField ("Step.1.2")
    var i = this.getField ("Step.2.2")

    var j = this.getField("Subject.1").value

    Switch (event.value) {}
    case "": ""
    a.Display = display.hidden
    b.Display = display.hidden
    c.Display = display.hidden
    d.Display = display.hidden
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    case '1 ':
    If (j.value = "1")
    {
    a.Display = display.visible
    b.Display = display.hidden
    c.Display = display.hidden
    d.Display = display.hidden
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '2')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.hidden
    d.Display = display.hidden
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '3')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.visible
    d.Display = display.hidden
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    }}}
    case '2 ':
    If (j.value = "1")
    {
    a.Display = display.visible
    b.Display = display.hidden
    c.Display = display.hidden
    d.Display = display.visible
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '2')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.hidden
    d.Display = display.visible
    e.Display = display.visible
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '3')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.visible
    d.Display = display.visible
    e.Display = display.visible
    f.Display = display.visible
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    }}}
    case '3 ':
    If (j.value = "1")
    {
    a.Display = display.visible
    b.Display = display.hidden
    c.Display = display.hidden
    d.Display = display.visible
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.visible
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '2')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.hidden
    d.Display = display.visible
    e.Display = display.visible
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    break;
    If (j.value = '3')
    {
    a.Display = display.visible
    b.Display = display.visible
    c.Display = display.visible
    d.Display = display.visible
    e.Display = display.visible
    f.Display = display.visible
    g.Display = display.visible
    h.Affichage = display.visible
    i.Display = display.visible
    break;
    }}}

    by default:
    a.Display = display.hidden
    b.Display = display.hidden
    c.Display = display.hidden
    d.Display = display.hidden
    e.Display = display.hidden
    f.Display = display.hidden
    g.Display = display.hidden
    h.Affichage = display.hidden
    i.Display = display.hidden
    }

    Lines as follows:

    If (j.value = "1")

    Must be:

    If (j is '1')

    and lines like:

    If (j.value = '2')

    Must be:

    } Else if (j == '2')

    Same thing for the j is "3" lines.

  • linking two fields and fill in the two field based on the list drop-down selection box 1

    I work for a small social service agency VERY small non-profit and I try to get our paperwork until the twentieth century. I hope someone here can help me. I have adobe acrobat, but not of other adobe products. I converted our word document that we use for client notes in fillable pdf format and so far everyone is excited to try it. I have a huge problem that I can't understand. I have a customer named created drop-down list box that contains a list of 300 customers. Box 2 is named customer ID and will contain a unique identification code assigned to each customer.

    For example:

    CUSTOMER ID customer JANE DOE 12345678

    So here is my question how can I ensure that when Unetelle is selected 12345678 is already filled in the second field?

    I fill the drop-down list with the names of customer and then enter the customer ID as the value of exports. Note You must have a unique name for each client.

    If your customer ID starts at zero, then you must use a custom JavaScript, so you can keep the zero non significant.

    For the customer ID field, you can use the following custom JavaScript code:

    Event.Value = this.getField("DropBoxFieldName').valueAsString;

    You will need to change DropBoxFieldName name of the drop-down list.

    You will need a mechanism for updating the new customer form and IDs names.

  • How do you use a Combo Box value export to determine the visibility of another field

    Hi all

    Struggling to create a form that has 1 area 2 text fields and drop-down list. Based on the selection in the drop-down list box, I want the 2 fields to be visible or hidden.

    The drop-down list box has 4 choices, 2 must show 2 text fields should hide the text fields.  I put the value of export on each choice '1' or '0 '.

    txtChild1 & txtChild2 are text fields

    cboRelatStat is the drop-down list box

    Place code in the drop-down list box strikes but again without success.

    var cDisp = this.getField ("txtChild1")

    var cWrite = this.getField ("txtChild2")

    If (event.changeEX == '1') {}

    cDisp.hidden = false

    cWrite.hidden = false

    }

    Else if (event.changeEX == "0") {}

    cDisp.hidden = true

    cWrite.hiden = true

    }

    Do not worry

    Understood that it was my own typing, which I was let down.

    (event.changeEX == '0') should have been (event.changeEx == '0')

  • The drop down menu boxes that appear under the heading of Firefox do not fill. A form of box on the screen, but it is empty. Given zero no has not solved the problem.

    The file, editing, display and help tabs that were on the previous version of FireFox Menu bar top are apparently incorporated into the "FireFox" drop-down box in the latest version of the browser. I was unable to open those tabs earlier, so by the recommendation of the Support Forum, I have Firefox on my laptop. Now not only the tabs above are missing after this reset, but the drop down menu does not open in any submenus. What I see now is a box on the surrounded black screen, but sub menu selections such as save as, print, copy etc are not shown in the box. This is why the Navigator is not functional in its current state.
    Does anyone have a fix for this problem that will not delete my favorites and other content stored on Firefox? Please save me to return to Internet Explorer.
    AJJC

    Try disabling hardware acceleration in Firefox.

  • C5180: C5180 change to the previous version of the operating system in the drop-down dialog box

    I tried to fix the parse error: 4, [(0,12,80004005), (2,7,80040007), (3,7,0) error of scanning hp] and stumbled upon a fix in support of HP that says if the scanning functions work properly before an upgrade of the operating system to try to use the previous version. I upgraded from Windows XP to Windows 7 when it is released, but just recently started having problems with scanning. Now, I can't find the setting with the dialog box with the drop down box that allowed me to make this change and I need to reset Windows 7 on XP.  Where should I go to my settings of the computer to find this setting?

    Hi pfeif25,

    You are welcome!

    The video was an example, how to get to this screen. So what you want to do is the same procedure indicated in this video with your HP Solution Center, or any other program you want to use compatibility mode with...

    I hope this clears up things!

  • How do interactive drop down text boxes?

    As many know maybe of my recent posts, I'm pretty new to this thing any design. I get a pretty good shot of most of the things, but now I've reached a point where I am trying to create some interactive features.

    I have a page in a whish magazine iPad is a picture full page. I want to do is have a couple of buttons in random places on the photo, which when it is typed/press/pushed, place a drop-down list text and wraps what tapped/pushed/pressed once again, the text box. I don't know what it is that we call or how to do it so any help is appreciated.

    I can ot understand it myself if someone can give me a general idea of what this kind of issue and the General steps.

    Thanks for the help

    You might want to try State Multi objects (States of objects).

    A State must be an empty block and the other State, a text box.

    Buttons get the 'Go to' action so that you can at different States of objects when you press on them.

    If you are really looking for a way to make interactive (HTML are), you can use HTML (5) and include it in DPS as Web content.

  • Stand-alone table in the drop-down and limit values in the report

    Hello

    I report where the measured values should be limited based on the threshold value table. Values threshold has the values below.

    Table of threshold:

    ID of threshold threshold values descr

    13345 10000 initial

    13346 departure 20000

    13347 30000 initial start

    13348 40000 end

    13349 end last 50000

    This table is independent of the star for OBIEE report schema and created for the user, given the threshold value.

    Shud threshold shown falling down the values and the drop-down list values invites is always GTE to 10 000 by default. The report shud display measurement values GTE 10,000 in the columns of 4 measure of the report written by deafult, based on the work of prompt and default shud according to the user's selection in the menu dropdown.

    I intend to apply it using the variable of the presentation, but when I select GTE in the command prompt, this option is not present. Please throw some light on this issue.

    Thanks in advance.

    Use is equal to the operator in the guest... change the show section for all values of sql result... after that, change the formula in the column to the case where 1 = 0 then else 1 end... now you can make a variable presentation... use this variable in your report with is liked this operator in your report... HTH...

    Published by: Vincent on July 20, 2010 10:57

  • History list in a drop-down text box

    When you use a text field, a story appears as a drop down. Is it possible in the APEX to control this story is to say to clean it up after several records are introduced or change what is happening in it?

    Hello

    I've never tried... but there is a HTML attribute forItens: AutoComplete.
    Please edit your article and on the properties of the HTML element, type the following:

    AUTOCOMPLETE=OFF
    

    This should stop the auto-completion.
    Tell me if this solves your problem.

    --
    Paulo Vale
    http://Apex-notes.blogspot.com

  • How can I get a drop-down text box as a form of my PDF document that I send for signature using EchoSign?

    When I create a document using a template from my library, I find that all of the text I included in the text box is scrollable and visible, but after the signing, users are not able to scroll the text and cannot see what is visible in the text box itself.

    Hello Erin,.

    I think that you have added the text field and you filers or adding default values (more than the size of the text field). You must make sure that the length of the text field is appropriate in order to fit all the text inside. If you enter more text that the size of the field, then the rest of the text would be cut.

    Kind regards

    -Usman

  • Have the drop-down list boxes become visible depending on the selection in a previous drop-down list box?

    Hi, im doing a form that only shows some options based on the previous selections.

    So far I have buttons which allow a user to select a specific product, and then by using the drop-down combo boxes select some optional features.

    I then have a simple javascript code that bears the name of a product at a price (i.e. the user selects product 'A', the review sections shows priced at $ 99).

    My problem is with additional customization options that depend on previous choices.

    Is it possible to have some drop-down list boxes become visible depending on the selection in a previous drop-down list box? If yes how could I impliment it?

    Currently my best idea is to have a button that could ask the user if he or she had previously chosen a certain selection and then reveal areas of correct drop-down list accordingly.

    Thank you

    Hello

    With a small change I think that the code works as expected. I changed your mainDD.value to event.value, as on the validate event the mainDD.value property cannot be updated as expected.

    script

    this.getField("Dropdown2").display = display.hidden;

    this.getField("Dropdown3").display = display.hidden;

    this.getField("Dropdown4").display = display.hidden;

    Switch (event.value)

    {

    case "a":

    this.getField("Dropdown2").display = display.visible;

    break;

    case "b":

    this.getField("Dropdown3").display = display.visible;

    break;

    case 'c ':

    this.getField("Dropdown4").display = display.visible;

    break;

    by default:

    break;

    }

    end of script

    Hope this helps

    Malcolm

  • Several problems with embedded DHTML menu text boxes, drop-down

    We have recently improved HR 10 HR 2015.  We know a menu dhtml drop-down text question existed prior to the upgrade and the upgrade did not fix it.  We now have a more serious problem.  We are not certain that all started with the upgrade, but we detected it after you convert our projects to HR 2015 and republish them.  I list both here in case they are connected.

    The problem known: styles of multilevel list to the level of the main topic and within the text box drop-down dhtml to first level.  However, if we add a drop-down list box text in a drop-down text box and apply a list style at several levels to the text in the drop-down text embedded dhtml, the topic seems in good shape on the Design tab, but loses the line numbers or bullets in the preview and in the published version.  No idea what would cause the list not to display properly or how to get the multilevel list styles to work in this situation?  (Yes, we know we can use styles list rather than multilevel list styles, but it is problematic, too)

    list1.png

    The novelty is that, when content is published and read in IE or Chrome (the two major browsers use customers), the drop-down text link embedded dhtml is always present, but the text in the drop-down list embedded dhtml has disappeared (for example, nothing happens when you click on the link to open the text box).  It works in preview, but not when accessed through a browser (or access to the content of webhelp after publication to a server directly from my local computer).  Any ideas on how to get it to display?  The net result for our users, is that a substantial PART of the content of the assistance amount is now more accessible.list2.png

    Thanks in advance for any help you can provide to these questions!

    Here are a few things that I would consider trying.

    First, click on Tools > update DHTML and let it do its thing.

    A test to see if something has changed. If so, great!

    If the problem persists, open one of the samples project. Click here to see a video on how to do

    Then open Windows Explorer. Click here to see a video on how to do

    Find and copy a file called ehlpdhtm.js and return to your project and paste this file into so that it replaces the one that is there.

    Then see if things are better.

    See you soon... Rick

  • Drop-down menu to complete textfield

    Hello

    I think it should be pretty simple to do... but I can't figure out how to get my textfields values change based on the selection of the menu drop down.

    Here is an example of what I'm doing...

    I have a drop down (combo box) and two textfields

    [drop] - DropDownList1

    -Item: Lun

    -The value of exports: Lun

    -Item: Mar

    -The value of exports: Mar

    -Item: sea

    -The value of exports: sea

    [textfield] - TextField1

    [textfield] - TextField2

    Now I want the TextField1 to display the 'kills' if 'My' is selected in the menu drop down and

    TextField2 to display "Wed" If 'My' is selected...

    I can't understand what I'm doing wrong.

    I have this javascript under the tab "Actions" (the ComboBox)

    Actions

    -Mouse exit (Select Trigger)

    -Run a Javasript (Action of selection)

    {Switch (DropDownList1.RawValue)}

    'my ': case

    TextField1.rawValue = "Tuesday";

    TextField2.rawValue = "sea";

    break;

    'kills ': case

    TextField1.rawValue = "sea";

    TextField2.rawValue = "play";

    break;

    case study 'sea ':

    TextField1.rawValue = "play";

    TextField2.rawValue = "Friday";

    break;

    }

    Hello

    Your code is a bit awkward as he calls more code is needed in respect of the extra cost calculate event. If you have changed your code for this you can do probably all in the comboBox code

    var text1 = this.getField ("TextField1");

    Var Text2 = this.getField("TextField2");

    If (event.value is 'My')

    {

    Text1. Value = "Tuesday";

    Text2.value = "sea";

    }

    Else if (event.value == "Kills")

    {

    Text1. Value = "sea";

    Text2.value = "play";

    }

    but as I said it's just an optimization that could be made that it would keep all the code in one place, making it a little easier to maintain.

    Concerning

    Malcolm

  • In passing the id of vs option name option value. Name of the option must display in the drop-down menu.

    The complete flex source is transferred to a file called source.txt. As forward using Flex and and a. CFC as primary server. Using

    the remote object to call the cfc and fill the drop-down list boxes. Which works very well. When the user presses the submit button after selecting

    combo box values want to send the id of the option which should be the "ticket_source_id" column in the sql statement for the "sourceInput" drop-down list box

    to send the id to the cfc. Now when the user selects "Phone" for example the source string 'phone' is sent. To get the

    ID, value that would be '2' to be sent instead, when this service is called "sourceDataService.goCreateTicket". Any help would be great.

    Thank you.

    [Bindable]
    private var recievedSourceData:ArrayCollection = new ArrayCollection(); / / Keep this vacuum

    private void getSource(returnedEvent:ResultEvent):void

    {
    recievedSourceData = returnedEvent.result as ArrayCollection collection;
    }

    private function sendForm (): void

    {

    sourceDataService.goCreateTicket (sourceInput.selectedItem.TICKET_SOURCE_ID);
    }

    ...

    It looks right! The result of your returnedEvent property must be an arrayCollection of objects (any point) collection. Each object has a property TICKET_SOURCE_ID and TICKET_SOURCE_NAME. If you do not change the names of these properties, then your labelField of the ComboBox must be on TICKET_SOURCE_NAME, so that it matches the property name!

    Dany

Maybe you are looking for