Expand my Community achievements bar.

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