Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

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.

krystelb4408933
Level 1
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
Magus069
Level 10
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!

krystelb4408933
Level 1
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.

Magus069
Level 10
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

krystelb4408933
Level 1
Level 1

Thank you.

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

Syntax Error: invalid label

1: at line 2

krystelb4408933
Level 1
Level 1


What does right reference_syntax to access to your dropdownlist mean?

Magus069
Level 10
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:

krystelb4408933
Level 1
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.

Magus069
Level 10
Level 10

To see the hierarchy you must open it,

Window > Hierarchy

krystelb4408933
Level 1
Level 1

That is not an option in adobe acrobat pro XI.

Magus069
Level 10
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...

Magus069
Level 10
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