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 to auto populate multiple text fields using xfa.event?

Benjamin_Houge
Level 1
Level 1

 

How to auto populate multiple text fields using xfa.event?

I am using the following script to auto populate a text field:

topmostSubform.Page1.Goal_1[0]::change - (JavaScript, client)

 

if (xfa.event.newText == "Drop down item 1.")

 

textfield1.rawValue = "Text populated to text field 1."

else

This is working great except I have been unable to effectively have the drop down auto populate a second text field. I would like the drop down selection to populate both textfield1 and textfield2. Is there any way to easily do this using the scripting method I use above? Any help would be much appreciated!

 

 

0 Replies