How to use spawning with a drop-down list and a table area

Hello

I have a form that I need to build pages.  As it is now, I have a table in document and a drop-down list box.  When a selection is made in the drop-down list box, the StateAmt field is filled with the table.  This set works fine now, but I need to be able to make this code work with pages having engineered and need a bit of help.

It's my javascript document:

var gState = new Array //Create a reference to a new array

load the table with quantities for each State

gState ['AL'] = 40

gState ['AK'] = 40

gState ["AR"] = 40

gState ["z"] = 25

gState ['CA'] = 25

.. .and so on, I deleted the most to make the shorter script here

It's my script custom shot to a combo box "gstate" (FYI, I've added the initials of the State in the tab options in combo box)

var stateamt = this.getField ("G876. StateAmt')

If (event.changeEx to gState)

stateamt. Value = gState [event.changeEx]

This works very well for one page, but when I add another page (model laid) nothing happens after you make a selection in the drop-down list box.  I don't know I need to edit the script due to spawning change the domain names on each page, but I don't know how.  I tried to rename the combo gState1 and using this script (which does not work)

Fna var = event.target.name.split(".");

var fp = fna.length > 1? "fna [0] +". ' ' + fna [1] + ". » : » « ;"

var stateamt = this.getField(fp_+_"G876_StateAmt").name / / (this is G876. StateAmt in the original formula)

var = this.getField(fp_+_"gState1").name //(this is gState GST on the original form)

If (event.changeEx in GST)

stateamt. Value = gst [event.changeEx]

If anyone can help me with this, I would be very grateful.

Thank you

Lisa

I fugured it myself. It works:

Fna var = event.target.name.split(".");

"var fp = fna.length > 1? fna [0] +". ' ' + fna [1] + ". » : » « ;"

var stateamt = this.getField (fp + "G876_StateAmt")

If (event.changeEx to gState)

stateamt. Value = gState [event.changeEx]

I didn't totally understand the script and trying to change the wrong part.  It is still using the gState table and I needed to change the text box to get the information in the table.

Tags: Acrobat

Similar Questions

  • How to restore the search bar drop-down list and the search engine icon today as it was in version FF 33?

    Some ealier time, I managed to go back to the drop down list via editing about: config and setting browser.search.showOneOffButtons to false.

    But yesterday firefox asked me to improve my search and I agreed. After that, I see ugly new tile instead of the drop-down list.

    How can I go back to find it is old menu drop-down appearance?

    "browser.search.showOneOffButtons" was a temporary pref which lasted from Firefox 34 upward through 42 of Firefox. The underlying code that have supported this preference is gone like Firefox 43.

    https://addons.Mozilla.org/en-us/Firefox/addon/classicthemerestorer/ has an option for old search (experimental) in Options of CTR > UI (1)

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

  • Re: problem with menu drop-down lists.

    Hello everyone,

    I am facing a problem with the drop-down lists in my application, I have 4 drop-down lists one under the other. The main problem follows here, the second list is being covered by the first list when the first list fell down. How to get rid of it, any suggestions please,

    Thank you and happy new year.

    You must listen to the update and then change the order of objects.  Seems odd that RIM does not perform this themselves because it is a problem long been known.  A few other controls have similar problems.

    Community Library:

    import flash.events.Event;
        import flash.events.FocusEvent;
    
        import qnx.ui.listClasses.DropDown;
    
        public class DropDown extends qnx.ui.listClasses.DropDown
        {
            public var dataField : String = 'data';
            public var defaultSelection : * = '';
    
            /////////////////////////////////////////////////////////////////////////
            public function DropDown()
            {
                super();
                this.addEventListener(FocusEvent.FOCUS_IN, HasFocus );
            }
    
            ///////////////////////////////////////////////////////////////////////////
            private function HasFocus( event : Event ) : void
            {
                this.parent.setChildIndex( this, this.parent.numChildren-1 );
            }
    
            ////////////////////////////////////////////////////////////////////
            public function set selection( value : * ) : void
            {
                var entry   : Object;
                var counter : int = 0;
                for each( entry in this.dataProvider.data )
                {
                    if( entry[ this.dataField ] == value )
                    {
                        this.selectedIndex = counter;
                        break;
                    }
                    counter++;
                }
            }
    
            //////////////////////////////////////////////////////////////////////
            public function get selection() : *
            {
                return this.selectedItem ? this.selectedItem[ this.dataField ] : this.defaultSelection;
            }
        }
    
  • Fill a textfield with the drop-down list selection

    Day of goo,

    I have a menu drop down and a textfield in a table with one line and an Add button.

    The line is repeatable, now, when I select a value in the drop-down list, say "23" and it fills the textfield say with "Jordan".

    Then I click the addButton to add a new line, now I select '7' in the new drop-down list and its supposed to fill the new textfield with "David Villa,"

    Instead, he replaces what was on the original textfield("Jordan") with David Villa, leaving the new empty textfield.

    Can someone help me please.

    Another thing, I have to select two times for the drop-down list to the fire, why is this?

    Hello

    First thing: I suspect that you have the script to the change event, but use .rawValue for the test. With the drop-down menus, I tend to use the exit and .rawValue event.

    With respect to the textfield, you probably use a too full reference, like "Row1.usersName". If you just use "usersName, for example the name of your textfield, then Acrobat/Reader uses the particular instance of the textfield in the same line as the drop-down list.

    Hope that helps,

    Niall

  • Problems with HR 9Printed Documentation do not display windows popup, drop-down lists and links

    Generate a Word document for reviewers. PrintedDoc properties include: maintain links Hypertext; Include text from the drop-down; Include text enlargement.

    • Sometimes the Word 2010 document contains links, sometimes it doesn't.
    • Pop-up windows does not work normally in the document Word.
    • Menu drop-down and expanding text appear intermittently in the Word document.

    Has anyone experienced this and have a solution?

    Thank you.

    Carol

    I have never known failure except in two cases, hyperlinks.

    1. The target field is not in the printed document. It cannot obviously a link to something that does not exist.
    2. The hyperlink is a popup.

    Not sure what you mean by popups not working only not in a printed document. If you mean that links to these break, then see above. Known issue.

    I don't know why you are having the drop down list, growing problem of text that I didn't know that it is a problem either. Is it always the same drop down menus that fail? Have you compared a good drop-down list and a bad dropdown?

    Take a look at the Documentation printed on my site.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Code JavaScript for buttons, drop-down lists, and text fields

    Hello, I currently have a form with a drop-down list field that fills a text field with something according to what is selected in the drop-down list via a custom script typo.

    I want to add a button that something will enter the field of text according to what is selected in the menu dropdown. Copy and paste the script of hitting into the button do not work and returns an undefined value.

    I would also like to add that I am new to coding and it would be more useful if someone can provide a script for it or let me know if this is not possible. Thank you.

    OK, the script of mouse upwards for the button might look like this:

    (function () {}

    var aQuotes = [];

    aQuotes [0] = this.getField("Batch").value = util.printd ("Rmmddyy-96", f);

    aQuotes [1] = this.getField("Batch").value = util.printd ("Rmmddyy-95", f);

    aQuotes [2] = this.getField("Batch").value = util.printd ("Rmmddyy-94", f);

    aQuotes [3] = this.getField("Batch").value = util.printd ("Rmmddyy-93", f);

    aQuotes [4] = this.getField("Batch").value = util.printd ("Rmmddyy-92", f);

    aQuotes [5] = this.getField("Batch").value = util.printd ("Rmmddyy-91", f);

    aQuotes [6] = this.getField("Batch").value = util.printd ("Rmmddyy-90", f);

    Get the value (export) of the element selected in the drop-down list

    var point = getField("dropdown1").value;

    Set the value of a text field

    getField("Batch").value is aQuotes [point];.

    })();

    Replace "ListeDéroulante1" in the code above with the actual name of the relevant drop-down list field.

  • How to return multiple screens? There used to be a drop-down list of the recent screens in a tab. Thank you.

    The navigation bar contains icons arrow to move forward or backward a screen in a tab, but previous versions of Firefox has also provided a drop-down list of recent Web pages allowing the user to return more than one screen with a single click. This feature is always available?

    The feature was not removed, see article #5 tools rear without drop-down - menu bar button use right-click (or left click hold for a second) for the drop-down list

    in what follows:

    You can make Firefox Firefox 5.0 look Firefox 3.6.19, paragraphs numbered 1 to 10 in the next topic difficulty Firefox 4.0 UI toolbar, problems (Make Firefox 5.0, or 4.0.1 resemble 3.6). If you make changes, you must be aware of what has changed and what it takes to use changed or missing features.
  • How to get a selection of drop-down list to complete another field with nothing

    Hello

    I have a drop down menu that fills another field according to what is selected (as shown here where Admin mistakes fills the next field with 6735-10-01).

    Capture-1.JPG

    However, there are 3 items in the drop-down list that I don't want to fill in the other with (basically, it must be empty during one of these 3 elements are selected, in contrast to how it returns zero in the example below). I don't know what to put in for the values to make it white.

    Capture-2.JPG

    Please notify.

    Kind regards

    ZeroZone

    I don't know what your code looks like or where it is but you will need to add a conditional statement, such as:

    If (DropDown.rawValue == "0" | ") DropDown.rawValue == "1" / * | "" etc, etc, * /)

    TextField.rawValue = null;

    on the other

    TextField.rawValue = DropDown.rawValue;

    Kyle

  • How to start the message with the drop-down list box selection?

    I'm trying to trigger a message box when I select 'No' as a selection of drop-down list by using the change event:

    If (this.rawValue = "No") {xfa.host.messageBox ("Please try again.", "Error")}

    However, it fires even when I select 'Yes.' Perhaps, it may be due to the fact that the following script is in the event "exit":

    If (this.) RawValue == null) {This.execValidate () ;}

    You have a syntax error. You want to change this.rawValue = 'No' to be this.rawValue == 'no '. In your script this.rawValue = 'No', you set the value of the field to be not so it will always be true in fact.

  • 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}
  • Help with the drop-down list boxes

    Hello.  I am working on a form that contains three drop-down lists that have different names.  All three have the same point selections, but I want that each of the three to automatically fill in its respective field (it is essentially a price sheet where up to three elements may be selected and you'd see every price indicated in front of it).  I got concerning depression the 1st drop to fill its field using the script "setvalues.

    However, when I try to create the following scripts for two other menus, it seems that I finally, create all three drop-down lists that all fill in the very field that corresponds with the latest script, that I added, instead of the respective field. To clarify, after 1 was created, it works normally.  When I create a second script for the 2nd menu drop-down & price field, both drop-down lists only affect the 2nd price field.

    I assured the fields have different names, and these names are specified in each script.  I do not understand why acrobat would allow, when the script specifies the field that I entered.  It is essentially in a field that isn't in the script.  Of course, I am a novice, so any idea how works this process is very appreciated!

    Thanks for your reply, George!   I really love it!  What I was doing wrong placed the code in the javascript Document, so it was essentially apply the script all dropdowns.  What I did instead was delete and go in each drop-down list individual and added the script as the custom format script.  Just in case someone else did the same thing, here's the script that I use [details omitted to save space...]

    Put all vorkriegsbevölkerung data in a single data structure

    var LaborCode = {SelectCode: {cost: ' '},}

    XYZ {cost: "123.45"},

    };

    function SetFieldValues (cLaborCode)

    {

    this.getField("LaborPrice").value = LaborCode [cLaborCode] .cost

    }

    Thank you!!

  • How can I create a menu drop-down list dynamics that controls two separate drop-down lists?

    Hello

    I could use help decipher how to control 2 separate drop-down lists ('b' and 'c') through the value selected in the main drop-down menu (that is, 'a').

    My script worked perfectly to control another menu drop down, however I can't seem to properly control the third zone.

    In my example below, what I'm trying to do is control 'Method - external' and 'Department - external', through my gout primary to the bottom of the list. The external 'method -' drop-down list works fine, it is the third 'Department - external' that I fight with.

    For example, if 'Theft' is chosen in the first drop-down menu, I want 'Method - external' to display the series points and "Department - external" to display a different set of items. If 'Cyber Crime' is selected in the main menu down, then the external 'method' - set items will change and the external "Department -" will indicate N/A.

    With the following script - no matter what happens if I choose 'Flight' or 'Cyber Crime' in the first menu drop down, 'Cyber Crime' n/d game elements are displayed in the external "Department -" drop-down.

    I apologize if this is hard to follow - it is certainly difficult to explain. I hope that my question came through.

    Here's my current script

    Switch (event.value) {}

    case 'flight ':

    this.getField("Method-External").setItems (["","grab and run", "shopping cart/basket Walk Out", "Possession", "Consumption", "Other"]);

    break;

    this.getField("Department-External").setItems (["","Agro", "Automobile", "Bakery", "Building materials", "Chemical", "Cleaning supplies", "Candy", "Dairy products", "Deli/Bistro", "ELECTRIC", "Electronics", "Farm equipment", "Fashion", "Feed", "Fertilizer"]);

    break;

    cases of "fraud":

    this.getField("Method-External").setItems (["", "credit card", "debit card", "Check", "Coupon", "Counterfeit", "Merchandise Return", "Price Switching", "Self Check-out", "Provider", "Other"]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    case 'flight ':

    this.getField("Method-External").setItems (["", 'threat of concealed weapon', 'Threat from weapon', "Verbal threats", "Acts of aggression", "Other"]);

    break;

    case 'exit and enter:

    this.getField("Method-External").setItems (["","Smash and Grab - vehicles", "Smash and Grab - pedestrian", "forced entry", "Unauthorized Keyed", "Other"]);

    break;

    case 'mischief ':

    this.getField("Method-External").setItems (["","graffiti", "Damage", "product a manipulation", "Other"]);

    break;

    case "Cyber Crime":

    this.getField("Method-External").setItems (["","Malware (Virus)", "Phishing", "Others" "]);

    break;

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    }

    Thank you

    You have a few break statements that should not be there. Try this:

    Switch (event.value) {}

    case 'flight ':

    this.getField("Method-External").setItems (["","grab and run", "shopping cart/basket Walk Out", "Possession", "Consumption", "Other"]);

    this.getField("Department-External").setItems (["","Agro", "Automobile", "Bakery", "Building materials", "Chemical", "Cleaning supplies", "Candy", "Dairy products", "Deli/Bistro", "ELECTRIC", "Electronics", "Farm equipment", "Fashion", "Feed", "Fertilizer"]);

    break;

    cases of "fraud":

    this.getField("Method-External").setItems (["", "credit card", "debit card", "Check", "Coupon", "Counterfeit", "Merchandise Return", "Price Switching", "Self Check-out", "Provider", "Other"]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    case 'flight ':

    this.getField("Method-External").setItems (["", 'threat of concealed weapon', 'Threat from weapon', "Verbal threats", "Acts of aggression", "Other"]);

    break;

    case 'exit and enter:

    this.getField("Method-External").setItems (["","Smash and Grab - vehicles", "Smash and Grab - pedestrian", "forced entry", "Unauthorized Keyed", "Other"]);

    break;

    case 'mischief ':

    this.getField("Method-External").setItems (["","graffiti", "Damage", "product a manipulation", "Other"]);

    break;

    case "Cyber Crime":

    this.getField("Method-External").setItems (["","Malware (Virus)", "Phishing", "Others" "]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    }

  • Showing and hiding of multiple tables with a drop-down list

    I'm doing a drop-down list so that users can select the number of tables that are shown/generated when they specify the tables how they need to complete (there is 1 table for each day of a multi = day, maximum of 5).

    I thought I would use a similar javascript than I used in another place on the form that has been applied to radio buttons to show or hide a specific table. When I applied that to the drop down and added more than lines that the scipt was ineffective, with some play that I managed to do the work, but now it seems thre is a question with which value is selected in the list. When a user selects a certain value, it shows the previous value (so when I chose 4 days, which has a hairy '3', the message box for the test proposed, I added told me I selected the value '2').

    I wonder if there is an easier way to do the function, what I'm doing, or if the drop down menu is the best solution? The maximum number of tables that can be filled is 5, then the drop down menu appears as a way ideal for resticting than for the person filling out the form.

    This is an example of writing, that I joined the drop-down list, as an action of "change." It is repeated 4 times for each value.

    Form1. Page2.DropDownList1::change - (JavaScript, client)

    If (this.value == '2') {}

    Form1. Page2.TableDay1.presence = "visible";

    Form1. Page2.TableDay2.presence = "visible";

    Form1. Page2.TableDay3.presence = 'hidden ';

    Form1. Page3.TableDay4.presence = 'hidden ';

    Form1. Page3.TableDay5.presence = 'hidden ';

    }

    else {}

    Form1. Page2.TableDay1.presence = 'hidden ';

    Form1. Page2.TableDay2.presence = 'hidden ';

    Form1. Page2.TableDay3.presence = 'hidden ';

    Form1. Page3.TableDay4.presence = 'hidden ';

    Form1. Page3.TableDay5.presence = 'hidden ';

    }

    If (this.value == '3') {}

    Form1. Page2.TableDay1.presence = "visible";

    Form1. Page2.TableDay2.presence = "visible";

    Form1. Page2.TableDay3.presence = "visible";

    Form1. Page3.TableDay4.presence = 'hidden ';

    Form1. Page3.TableDay5.presence = 'hidden ';

    }

    else {}

    Form1. Page2.TableDay1.presence = 'hidden ';

    Form1. Page2.TableDay2.presence = 'hidden ';

    Form1. Page2.TableDay3.presence = 'hidden ';

    Form1. Page3.TableDay4.presence = 'hidden ';

    Form1. Page3.TableDay5.presence = 'hidden ';

    }

    I looked at it and tried a few different things and my colleague who is much better than me with sciprting is also at a loss for now - he is unfamiliar with LiveCycle, unless I have so any help is appreciated. Thanks a lot once again as my last number (the script for radio buttons) has been resolved here. Thanks again.

    The question that you see with the value being off is due to the fact that you use the change event. The change event is triggered * before * the new value is assigned to the field. This event is commonly used for intercpet changes. If you wish to continue using the change event, you can get the new value with:

    xfa.event.newText;

    This, however, will get the text that is displayed instead of the value behind. No doubt, you can consult the nodes in the drop-down list to see what value, but I think you should just avoid all of this by adding your code to the layout event: each subform hideable... loan for example, for the first, in the case of TableDay2 layout_ready (as the day1 should never be hidden, as I understand it) put :

    This.Presence = (DropDownList1.rawValue > = 1)? "visible": "hidden";

    TableDay3 would be:

    This.Presence = (DropDownList1.rawValue > = 2)? "visible": "hidden";

    etc.

    Let me know if it helps.

    -Scott

  • Help with Hidden Drop Down lists in the subforms RBList

    I've created a form that contains 3 remote option button lists, each with hidden subforms that are unique in each button.

    Two of my RBLists and subforms work perfectly, showing the hidden options drop down and other fields as they should when a button is selected.

    However, RBList3 has the lists dropdown as user input fields only. Each subform hidden in RBList3 contains a menu drop down and a text box for instructions.

    I used the same javascript to hide/show the hidden fields when buttons are selected. All the settings seem to be upward. Here is a sample of my code:

    If (RBList3.F.rawValue! = 2)
    {
    This.Presence = 'hidden ';
    newsubform. Presence = "hidden";
    }

    another if (RBList3.F.rawValue == 2)
    {
    This.Presence = "visible";
    newsubform. Presence = "hidden";
    }

    Does anyone have suggestions for how make my Drop-Down lists in RBList3 show that lists functional Drop?

    I have attached the reference form.

    Code not woirk for E, F and G. I check if the user selects G if they do not, then they must chose one of two other options (which means that the rest of the logic is executed). If I understand the question is in the initial state of the EdgeDropDown2 objects.

    PanzDrawTxt, and

    EdgePanelChkBxTxt. If you set the initial value of invisible presence, then you will not need to change any code. You must do this for each object individually. Click on one of the objects and on the object palette click the tab field near the bottom of this tab is a drop-down list to set the initial value of presence. Set it to the invisible. Repeat for the other two objects.

    Paul

Maybe you are looking for