Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How do I pre populate a text field based off a drop down menu selection? Drop down selection is yes or no and the text field needs to be pre populated based off the selection.

Avatar

Level 1

How do I pre populate a text field based off a drop down menu selection?  Drop down selection is yes or no and the text field needs to be pre populated based off the selection.

11 Replies

Avatar

Level 10

Hi there,

So if I understand well, you want to populate the text field's value with yes or no depending the selected value?

You can use this to transfer value to the text field in the calculate event of the text field...

If you want to populate another value than yes or no

Hope this help!

Avatar

Level 1


No.  Based on the drop down selection of yes or no I need the text field to populate either sub-receipient or contractor.

Avatar

Level 10

Use the calculate event of the textfield to populate the field, and make sure you have the right reference_syntax to access to your dropdownlist

Avatar

Level 1

Thank you.

Do you know why I'm getting a error that says:

Syntax Error: invalid label

1: at line 2

Avatar

Level 1


What does right reference_syntax to access to your dropdownlist mean?

Avatar

Level 10

the reference_syntax is the path to access to your drop down list

hierarchy.png

in the example above, to be able to access to DropDownList1 from an event of TextField1, you must specify its path because it is not in the same "parent node  / child node" of TextField1

so from any event in TextField1, to access DropDownList1, I must use the reference_syntax below:

Avatar

Level 1

Is there a way for me to send you my form so you can tell me if I'm able to get to the reference syntax?  Because I'm not seeing the screen shot you sent me anywhere on my form.

Avatar

Level 10

To see the hierarchy you must open it,

Window > Hierarchy

Avatar

Level 1

That is not an option in adobe acrobat pro XI.

Avatar

Level 10

Oh... obviously you are suppose to do this within LiveCycle Designer...

I don't know how you can work it out with Acrobat I've never created form with Acrobat, not enough options...

Avatar

Level 10

You are in LiveCycle Designer Forum.. maybe you will have more chances asking the same question within the Acrobat Pro Forum

Creating, Editing & Exporting PDFs

PDF Forms

JavaScript