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

Avatar

krystelb4408933

Avatar

krystelb4408933

krystelb4408933

14-08-2015

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.

Accepted Solutions (0)

Answers (11)

Answers (11)

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

14-08-2015

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

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

14-08-2015

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

Avatar

krystelb4408933

Avatar

krystelb4408933

krystelb4408933

14-08-2015

That is not an option in adobe acrobat pro XI.

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

14-08-2015

To see the hierarchy you must open it,

Window > Hierarchy

Avatar

Avatar

krystelb4408933

Avatar

krystelb4408933

krystelb4408933

14-08-2015

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

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

14-08-2015

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

Avatar

krystelb4408933

Avatar

krystelb4408933

krystelb4408933

14-08-2015


What does right reference_syntax to access to your dropdownlist mean?

Avatar

Avatar

krystelb4408933

Avatar

krystelb4408933

krystelb4408933

14-08-2015

Thank you.

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

Syntax Error: invalid label

1: at line 2

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

14-08-2015

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

Avatar

krystelb4408933

Avatar

krystelb4408933

krystelb4408933

14-08-2015


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

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

14-08-2015

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!