Expand my Community achievements bar.

Linking data in fields in AdobeCycle Designer8

Avatar

Former Community Member
I have Adobe LiveCycle Designer and would like to know how I can set up the following: I have created a form with different fields and I would like to link two fields as follows.

Example: On one field I would have a drop down box containing different city names. When I chose a city name from that drop down list, I would like the state name for that city to automatically prepopulate in another field.



Can anyone explain how this can be accomplished in Adobe LiveCycle Designer.



Thanks
2 Replies

Avatar

Former Community Member
Try this. In the change event for the drop down list enter the following code.



var myCity = xfa.event.newText;

TextField1.rawValue = myCity;



Steven

Avatar

Former Community Member
Thanks Steven for your help.



I also found a really good article showing you step by step instructions, just in case anyone else is interested.



www.acrobatusers.com --> "How to" --> JavaScript Corner

"Changing Another Field with Combo Box (Drop Down) Selection"