Expand my Community achievements bar.

Attention: Experience League Community will undergo scheduled maintenance on Tuesday, August 20th between 10-11 PM PDT. During this time, the Community and its content will not be accessible. We apologize for any inconvenience this may cause.

Link drop down list to text box

Avatar

Former Community Member
I want to link a drop down list to a text box

the drop down list has 3 possible entries

building1

building2

building3



and i want my text box to display the address of the building selected

eg if building1 selected



text box should deisplay

building1 address line1

building1 address line2

building1 address line3



eg if building2 selected



text box should deisplay

building2 address line1

building2 address line2

building2 address line3

etc
2 Replies

Avatar

Former Community Member
for the text box calculate method



if(page1.sub1.dropdown.rawValue == "building1")

{this.rawValue = "building1 address line1" + "\r" + "building1 address line2" + "\r" + "building1 address line3"}



etc..



Oh, and make sure the script is set to javascript, or it won't work!