Drop-down lists of the fill of the text fields on a different page from the drop-down list.

Hi all

I have a form with multiple pages. The first page contains a number of drop-down lists. These lists, drop-down list when the option is chosen, must complete a field text on another page. I can get the drop down menu to populate the text field when it is on the same page, but as soon as I move the text field to another page, the script does not work. Can anyone offer a solution? I used javascript on the changes to the scripts.

Every time reference you the other object... so I guess in the code located on the DDlist.

Paul

Tags: Adobe LiveCycle

Similar Questions

  • NULL text field, how to fill in another text field

    I would like to be able to invite the user to fill one of two text fields, if for example they fill in A text field, then no guest would jump to the top, but if they don't fill in the text field then a prompt would leap upward by asking them to fill out the text field B.

    Thank you

    Hello

    One way would be to place a JavaScript in the output of TextFieldA event:

    if (this.rawValue === null) {
         xfa.host.messageBox("Please complete Text Field B", "Attention", 0, 0);
    }
    

    However this fires when the user leaves TextFieldA. You may need extra script if it is likely that the user is not yet in this text field.

    Niall

  • How do fill you a text field based on the entries in other text fields?

    I would like to be able to have a text field that fills as 'Full' or 'Incomplete' based on the question if all required fields have been filled or not.

    For example, if the "First Name", "Last Name" and "City" text fields are not filled, the text of "the State of completion" field displays 'Incomplete' and once they are filled, the text of "the State of completion" field will turn into "Complete".

    How can I do this using javascript? I searched the web for a tutorial, but most of the results seems to be focused on the menu drop-down.

    Please point me in the right direction!

    Try the script below. I put this on the calculate for Field1 event

    If (FirstName.rawValue == null |) LastName.rawValue == null | City.rawValue == null) {}

    Field1.RawValue = "incomplete."

    }

    on the other

    Field1.RawValue = "complete."

  • Problems with the filling of a text field with 2 other fields data


    I have 3 domains Tools_1a_pri, Tools_1a_pri_other, Tools_1a_pri_txt.

    Tools_1a_pri is a drop-down list box with a predefined list. One of the options is the 'other '.  If 'Other' is selected, the text Tools_1a_pri_other field becomes visible for users to enter the name of the other tool.

    The Tools_1a_pri_txt is a text field with a calculation that shows a text indicating that no tool has been selected or the Tools_1a_pri & or Tools_1a_pri_other.

    When I select one of the predefined tools, everything works.  When I choose the other, it seems that nothing has changed.  Must I click another field before.  It's confusing for the user.

    Tools_1a_pri validate code
    this.getField("Tools_1a_pri_Other").display = event.value is "Other"? Display.visible: display.hidden;

    Computer Tools_1a_pri_txt code
    If nothing is selected, follow these steps
    If (getField("Tools_1a_pri").value.length < 2) {}
    event.target.textColor = color.red
    Event.Value = "no identified main tool";
    } else if (getField("Tools_1a_pri").value! = 'Other') {}
    If not do that if the other is selected
    event.target.textColor = color.black
    Event.Value = getField("Tools_1a_pri").value;
    } else if (getField("Tools_1a_pri").value = 'Other') {}
    If not do so if the other is not selected
    event.target.textColor = color.black
    GetField("Tools_1a_pri").value = Event.Value + "-" + getField("Tools_1a_pri_Other").value;
    }

    You have made the classic mistake of using the assignment operator in a statement instead of the comparison operator. Change this line:
    } else if (getField("Tools_1a_pri").value = 'Other') {}

    To do this:

    } Else if (getField("Tools_1a_pri").value == 'Other') {}

  • Expand the text field to allow multiple pages

    Hi all

    WARNING: Not a programmer JAVA/type. I usually Google things to death and try to learn from there. Create a form and have followed some other suggestions, but I'm in a dead end to the expansion of a field (text field) to allow users to enter information, and to print the full entry once submitted.

    I changed the form must be sent using the e-mail button to choose the recipients and as doc pdf. I want to keep it this way. I created the form and do not use a template. I just signed up and looking for the button attach doc, created in Livecycle Designer ES in the hope that someone could take a look. Could not find the button attach. If anyone can provide their e-mail address to take a look, it would be great.

    Niall, I've been reading your posts and actually I tried copy and paste in one of your fields (re: subform as a debit, etc.) but so far no luck.

    I selected all the usual variables for the subform/text box:

    Allow multiple lines, allows breaks, will develop to adapt (height).

    Please indicate if someone is available to take a look and I'll send it to you. Thanks in advance for any recommendations/availability.

    Hi Jeff,

    Users return data can still submit a PDF from a dynamic XML form. It is always a PDF, it's just that description indicates that the form will enable dynamic behavior.

    There are other issues to consider. Knowledge that users interact with the form - Acrobat or Reader? Then you'll be reader allowing the form before deploy you? Finally, if you allow the shape, you use Acrobat or LC Reader Extensions ES2 to enforce the rights of the reader?

    Here is a table summarizing the options:

    There is a post here:

    http://www.assuredynamics.com/index.php/2010/11/using-LiveCycle-Forms-in-Acrobat-and-Reade r.

    So in summary:

    • The dynamic XML form is always a PDF file and can be opened in Acrobat or Adobe Reader.
    • The features of this user with reader can use will depend on what software they use and how the shape was active reader.
    • Refer to the question of whether the user needs to save the form and format in which you want to the form returned to (PDF or XML format).

    Hope that helps,

    Niall

    Ensure the dynamics

  • Preserve the header and footer in the text field flowing through a page

    Hello

    I am creating a form, where the main text field Pounces on the next page (that I go to do). I created two master pages, the first page and the page of continuation. I want the field of main text to expand on the continuation page, while preserving the footer of the main page and the header/footer of the continuation pages. On the continuation page, I have a field name at the top of the page, I want to whether the value of the same text box of the home page, how to achieve this.

    The layout must remain what it 'looks like' on both master pages, I want to just be written in the main area on the first page to continue in the main area of the second page of the text. I want the second page to reproduce as many times as necessary to adapt the text.

    Help! PLEASE, I BEG YOU!

    I have attached my work so far, please do not hesitate to pick up ragged and make it work!

    Gareth

    For 1 issue, you can simply set the binding of this field worldwide and all fields will have the same value. Click on the object and in the object palette, there is a tab link. In the set default binding change None to Global.

    For the 2nd problem, you have a Pg1 field called numberOfPages. This field is used in conjunction with another domain on the master Page2. He shodul not be located on this page. I removed it, then I was able to resize the titleForm subform to fit the space.

    Paul

  • Change the border color of text field based on a value from the drop-down list

    I have a dropdown menu with 4 choices of priority for maintenance.  With a javascript script, I need to be able to select a 'priority' in a list box and a text box border then color with an appropriate color.

    'High priority' with an export value of 0

    "Medium priority" with a value of exports of 1

    'Low priority' of an export value of 2

    "When the time allowed" with a value of exports of 3

    When one of these selections has been filed, a text box becomes available in order to write the gap. My goal is as follows.

    When "High priority" is selected, the border of the text box where you write the gap would blush.

    When "Moderately urgent" is checked, the border around the text box where you write the gap would turn yellow.

    When "Low Priority" is checked, the border of the text box where you write the gap would become green.

    When "when she allows" is checked, the border around the text box where you write the gap would have turned blue.

    Otherwise, the border would be white.

    This form will be used ultimately on an iPad using Expert PDF under the player.     I use Acrobat X to create the form.

    Any help would be appreciated.

    Yes, I accidentally left a hug. I can fix it so it won't be a problem if someone tries to use it. Happy that you guessed it work.

    To handle resetting, you can use a script to validate drop-down list:

    Script to Validate drop-down list

    If (event.value = "" "") {}

    getField("discrepancy_1").strokeColor = color.white;

    }

  • LiveCycle: How to select a drop-down list and fill in a text field.

    I have a PDF on Adobe livecycle 8.0 that if selected will auto fill the field area:

    GoalDropDownList: has points:

    People with disabilities

    Functional

    Impairment

    I would like that when disability is chosen this GoalTextField show:

    Patient will return to the previous level of function.

    When functional is chosen GoalTextField to see the

    Patient able to stand 5 minutes

    When the disability is selected GoalTextField to see the

    Patient has full range of motion

    Any help would be appreciated.

    I'm new so can you include in java script where it must go out, enter, etc..

    Thank you all.

    In fact I don't know how to show a picture of this to illustrate what someone knows how?

    Write the code javascript next to the drop-down list in the change event.

    var

    selectedValue = xfa.event.newText;

    If

    (selectedValue is 'Disability')

    TextField1.rawValue

    = "Patient will return to the previous level of function.";

    on the other

    if(SelectedValue=="Functional")

    TextField1.rawValue

    = 'Patient able to stand for 5 minutes.';

    on the other

    TextField1.rawValue

    = 'Patient has full range of motion. "

    Thank you.

  • How to change the font that is used to populate a text field in an interactive form.

    Can you please tell me how I can change the font that is displayed when you go to fill in a text field in an interactive PDF?

    This is adjustable in InDesign or must it be done in Acrobat format?

    Only in Acrobat. Tools > forms > change. Double-click the text field to change its appearance.

  • Disable the scroll bar when no overflow in the dynamic text field

    I use the UIScrollBar on a dynamic text field. I would like to make the scroll bar is not visible or turn it off if there are no more rows to display when initially displayed. Are there variables in a pile of data L0 I can check to see if the scroll bar can be disabled; 'lines of total in the text field' and 'lines per page' either, something that accomplishes the same thing?

    You can use the textfields maxscroll property to determine if a textfield can display all its text without scrolling.

  • How can I set a text field to convert all text entered in uppercase when filled?

    I want to have any text you entered filled in specific text fields to automatically convert uppercase. I am working in LiveCycle Designer ES2.

    I don't know how to put the code to make it work. Cannot make it work.

  • How do I automatically populate the text field box based on data generated automatically in the drop-down list?

    I created a drop down list which includes various regions.  When a region is selected it auto-renseigne another drop-down list with places.  I would like to automatically fill a text field with predetermined phone numbers when you have selected a location in the drop-down list of "places".  I want to integrate the phone numbers in the code, since the form will not access a database.  Any help would be greatly appreciated.  Thank you, Ed.

    Hello

    Here is the link to your form. https://Acrobat.com/#d=BaCL7BKKdAcgV3JIk61nZg

    You have the updated field matches in the event changes from the 2nd menu drop-down.

    While referencing you use .page1 while your page is Page1.

    Thank you.

    Sidonie.

  • List drop-down selection trigger change in the text field

    I'm hit a roadblock here. I'm on Adobe Acrobat XI and here's the scenario: I have a list box and a text box.

    Drop-down menu field has 3 caps (A, B, C).

    If A is selected, the text box = 15 default, but has the ability to change in the text box.

    If B or C is selected, the text box = 0 or "by default, but it has the ability to change in the text box.

    If I use an if/then with a .value, I'll be able to get the numbers to work, but do not have the ability to edit and keep them there. If I enter another number in another area, the JavaScript code will run and change the text box to 0 or 15.

    Any help would be greatly appreciated.

    Thank you

    Instead to use script logic for the text field, use the drop-down validation script. In this way, that it only will be triggered when you change the value in the drop-down list field, not when you change any field in the file (as the calculation script).

  • Show alert window when the selection is made in menu drop-down (or when the text field is filled)

    I'm a JavaScript novice writer and need help a warning window that meets the programming user selection form a menu drop-down.

    If the user selects any option except the default choice (which is just an empty space), I want an alert is displayed.  If the user is moving through this area without changing the default value, nothing should happen.

    I have a script attached to the "blur" event for the dropdown menu, but it appears each time you tab in this area, of course.  I don't know how to tell him to display the alert if and only if the user has changed the selection.

    Similarly, I have another field which is a simple text field.  If the user types anything in this area, I would like another alert window pops up.  The thing from the drop-down list seems a little more difficult, so if anyone can help me get that squared away, I can probably understand how to program the alert text field.

    In fact, it's the same code for both types of fields:

    If (event.target.value! = event.target.defaultValue) app.alert ("your message");

  • Get the value of the drop-down list (selectedIndex) and the text field - does not

    Hi all

    I'm trying to find and change the values selected by the user using a drop-down list and text field. Here's the code.

    ChangeRevDetails();
    function ChangeRevDetails(){
    
    
              var myDialog = app.dialogs.add({name:"Enter copyright information"});
    
    
    //    var monthlist = col1.dropdowns.add('myList', undefined, myList);
    
    
              var col1 = myDialog.dialogColumns.add();
              var col2 = myDialog.dialogColumns.add();
      
        col1.staticTexts.add({staticLabel:"Month:"});
              col1.staticTexts.add({staticLabel:"Year:"});
        col1.staticTexts.add({staticLabel:"Rev. no.:"});
        
        var myList = [ "January", "February",  "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ];
    
    
         var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100});
         var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});   
         var MyRev = col2.textEditboxes.add({minWidth:100});
    
    
        var RevMonth = (myList [myMonth.selectedIndex]);
        var RevYear = myYear.editContents;
        var RevNumber = MyRev.editContents;
        var RevToReplace1 = RevMonth +", "+ RevYear;
        var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
    
    
        var myResult = myDialog.show();
    
    
            if(myYear.editContents == "") //entry is "" 
            { 
            alert("Please enter some text into the contents field."); 
            ChangeRevDetails(); 
            }
            else if(myResult == true) //user entered datas 
            { 
    
    
                alert (RevMonth);
                alert (RevYear);
                alert (RevNumber);
                alert (RevToReplace1);
                alert (RevToReplace2);
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
    
    
                // grep find/change
                app.findGrepPreferences = app.changeGrepPreferences = null;       
                app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+";
                app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.changeGrepPreferences.changeTo = RevToReplace1;
                app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.activeDocument.changeGrep();
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
      
        } 
        else //implies user clicked cancel 
        { 
        myDialog.destroy(); 
        }
    
    
    }
    
    

    The problem is, it does not take the value that the user selects in the drop-down list and the text field. It takes the default value as "January" and the year is '2013' as these two values are given as selectedIndex:0 and editContents: "2013". I compared the coding with a few other scripts work as well, but it does not work. I added several alert boxes to check the value we get.

    In addition, search for it and change also does not work. Please help me on this. Thank you.

    Kind regards

    Bachi. D

    Change the order of dialogresults:

    ...

    var myYear = col2.textEditboxes.add ({editContents: "2013", minWidth:100});})
    var MyRev = col2.textEditboxes.add({minWidth:100});)
    Ditto var = myDialog.show ();
        If (myYear.editContents == "") //entry is «»
        {
        Alert ("Please enter a text in the content field.");
        ChangeRevDetails();
        }
        else //user entered if(myResult == true) datas
        {
    var RevMonth = (myList [myMonth.selectedIndex]);
    var RevYear = myYear.editContents;
    var RevNumber = MyRev.editContents;
    "var RevToReplace1 = RevMonth + ', '+ RevYear;

    "var RevToReplace2 = RevMonth + ', '+ RevYear + 'Rev' + RevNumber;

    ...

    did not have a look for the problem of change to find

Maybe you are looking for