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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

change text field based on dropdown

Avatar

Level 1

Hello,

I'm new to LiveCycle and am having trouble getting a textfield to change when I select different options in a drop-down menu.  I used the following script (tried using exit and calculate events also):

pic.jpeg

Still not working.  What am I doing wrong?  Do I need to change any properties of the TextField?

1 Reply

Avatar

Level 5

this.rawValue only holds the old value of the drop down list when you are scripting inside the change event. you need to to have

if ( xfa.event.newText == " BURIED W/ BOX")

{

     TextField7.rawValue = "CONSTRUCTION";

}

this will be on the change event of the dropdown in javascript