Adobe Acrobat 9: Javascript populated the drop-down list box - response selected array will not save

I have a combo on one of my forms box that is filled with the help of a Javascript array.  The drop-down list box is filling very well, but when an item is selected in this drop-down list box, the selected item does not save when the user saves the document.  Any suggestions as to what is the problem and how it can be corrected?  I am a loss to know where even to start the search.  Any help is greatly appreciated.

Thank you.

Lisa

It seems that the drop-down list box may be getting filled with code that runs when the form is opened. If so, it will overwrite the value selected, whenever it opens. The solution would be to change the code so that it is not than that. If not, you can post the form somewhere so we can take a look?

Tags: Acrobat

Similar Questions

  • 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;
    
  • Reg - key event "F1" in the drop-down list box

    Hello

    Requirement:

    I need that to launch a browser window press the 'F1' key during the video (swf) has the focus. I did and it works very well for me in the web application.

    Problem statement:

    When a film was released and with focus in "Combo" (which has the list of items begins with A letter Z) control then, I pressed the 'F1' key but the browser window has been launched, instead "main action from the drop-down list box event fired and the article begins with the letter 'P' has been selected in the combo box." So now again once I hit 'F1', the browser window launched according to my condition.

    This behavior occurs whenever launched film has the focus in the "combo box"; otherwise, if the focus is on another control as TextInput etc, no problem for me. A more information, if the drop-down list box is not no matter what element does begin with the letter 'P' so no problem for me.

    I tried to understand the behavior of the combo, but again, I have no idea. Please share your knowledge/thoughts.

    Environment:

    Flex builder 3.5

    11.2 Adobe flash player

    Windows XP SP3

    Kind regards

    Mani

    Hello

    I just replaced Manager keydown to the ComboBox component to avoid his own behaviour of spread of events if the 'F1' key and his works fine for me.

    Thanks for all,

    -Mani

  • How to use the drop-down list box to fill in a text box

    I'm a beginner when it comes to Java Script.  I have seen a lot of different discussions, look at a lot of articles "helping" Acrobat 9 and Java Script, but only to be left confused and dazed.  I hope someone can tell me how to write a script that fills a text box that sits on my form with the value of exports of the selection in the combo box...

    Thank you

    If you want that the read-only text box, simply set with the following custom calculate script:

    Set this field to the value of the drop-down list box

    Event.Value = getField("combo1").value;

    but replace "combo1' with the actual name of the combo box field.

    If you want something else, post again with more information.

  • 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.

  • How to display text programmatically in the drop-down list box?

    Is it possible to display text programmatically in a drop-down list box.  I would like to display the word "Select" in the drop-down list box each time my program starts.  As it is now, drop-down list displays the last channel that has been selected the last time that the program is running.

    Thanks in advance.

    In fact, after actually reading your post...

  • 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.

  • How to display the drop-down list box in MS excel by using labview report generation toolkit? pleasepost code block diagram?

    How to display the drop-down list box in MS excel by using labview report generation toolkit? Please post the block diagram of the code so that I can able to generate from the drop-down list box in excel with the menu drop-down...

    Like this. (edition, use the reference forms instead of the reference to the worksheet)

    Ben64

  • 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

  • How to fill out the database in the drop-down list box

    Hi all, I want to display all the data in database (c_type) column in the drop-down list box, how can I do?

    I use form 6i.

    Sorry if the question is already exist in the forum...

    Kind regards

    Maybe this helps http://andreas.weiden.orcl.over-blog.de/article-28957008.html

  • cannot detect if it is has only 1 item in the drop-down list box?

    I have an array of strings to put them in the drop-down list box, a drop-down list box. I will select an item in the drop-down list box drop-down list and press the button 'delete '. It removes the item from the drop-down list box. but when I come to the last drop-down list box, im unable to remove offshore because it does not get pass this line...

    myEntries.selectedItem.label is myArray [i]

    Why do myEntries.selectedItem.label is not detected in the last element?

    Entries.addEventListener (Event.CHANGE, EntriesChange)

                   }

              }

    "" var str_entries:String = "";

    //set default

    function EntriesChange(e:Event):void {}

    for (var i = 0; i < myArray.length; i ++)

                   {

    { if (myEntries.selectedItem.label == {myArray [i].)}

    str_entries = myArray [i];

    trace ("str_entries =" + str_entries)

                        }

                   }

              }

    You can not able to delete the index 0th, the code below, did the trick:

    delbtn.addEventListener (MouseEvent.CLICK, delfn);
    function delfn(e:MouseEvent):void {}
    var str:String=String(Entries.selectedItem.label).toLowerCase();
    for (var i = 0; i)<>
    var str1:String=String(myArray[i]).toLowerCase();
    If (str == str1) {}
    Entries.removeItem (Entries.selectedItem);
    If (Entries.length == 0) Entries.removeAll ();
    str_entries = myArray [i];
    }
    }
    }

  • Validation in the drop-down list box

    Hello

    I use JDev 11.1 with fusion ADF

    I have the drop-down list box, this drop-down list box include a description and the value I want to if the user choose value e.g. - 2 and press the button Save appear validation said cannot insert this value, how can I do?

    Note that this drop-down list box to retrieve data from managed bean (not the view object)

    Concerning

    Hello

    You add a validator to your combobox component.

    Select your component in the property inspector-> Behaivour-> Validator-Edit... and create a method, and then you add the validation code it.

    More details on custom validators: http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/web_val004.htm#CIHFJBDI

    Greetings,
    Bogdan

  • Simple javascript for the drop-down list IF, fills two different fields

    I don't write js, but can grasp what it did when I hang a sample edit and re - purpose. I have a form simple fax that already resets to the opening. Here's what I'm doing:

    User selects the sender's name in the drop-down list of about 15 (grow w / hour)

    Fill in the following text field "sender Fax #" with the number of direct fax (xxx-xxx-xxxx in the js) user

    Are also complete this later text field "sender Ph #" with the number of direct ph of the user (xxx-xxx-xxxx in the js)

    Here is an example which I believe works the way you want: https://workspaces.acrobat.com/?d=gZNDS8dQQNqvwocUufXHNQ

    You have to watch the fields to see how they are implemented and to study different scripts to see how it works. If you have any questions, post again.

  • Populating the drop-down list of textfields

    Greetings:

    I can't get this to work.

    I'm trying to populate a drop-down list with the answers in multiple textfields.

    I tried

    ".addItem (textfield1).

    .addItem (textfield2).

    Which returns "empty" and contains the values of the textfields.

    Help is appreicated. Thank you.

    Steven

    Hello

    The syntax for JavaScript in the drop preOpen event would be:

    this.addItem(textfield1.rawValue);
    

    But you would also want to include a script to clear all items first, otherwise, the items to the drop-down list would multiply whenever it is open:

    this.rawValue = null;
    this.clearItems();
    
    this.addItem(textfield1.rawValue);
    this.addItem(textfield2.rawValue);
    

    You can see this type of script in action here: http://assure.ly/jcTahK and here: http://assure.ly/gcXx03.

    Hope that helps,

    Niall

Maybe you are looking for

  • 7 HP upgrade to windows 10 stream

    Hi, I downloaded the update to windows 10 today, but when it comes to accepting Microsoft conditions I can't get the Panel "agreed." It is away from the screen and the only decline is visible about. I can't to the 'agreement', but in portrait mode or

  • Turbo problems p 1 Lenovo vibe

    I am facing a lot of problems with Lenovo vibe p1 turbo for the last month and half, but still no support received from company 1) during the call, I had frequent breakdown of votes (2) frequent network drops (3) crash of the Dialer (4) many contacts

  • gather several PDF files into one

    Hello world I want to collect several PDF files into one form of report. What can I use as tools and hwo if possible. Kind regards

  • Keep xp pro as VM after upgrade to windows 8.

    I plan to upgrade my xp pro machine to windows 8, but want to keep my current xp available as a virtual machine under windows 8. I'm experimenting with a virtual instance of xp on my xp - the current system, it asks me to activate the VMS OS. Will I

  • Get the value of the question page before submitting.

    Hello all, I use the Application Express 4.2.5.00.08. I have a question on getting a value for a page element before the page is sent. I have a dynamic action:Action: Moving the mouse (on a region/State)Real Action: $('a[href*="39"]').each (function