Expand my Community achievements bar.

How do I write script to populate a text field with the user's choice from a drop down?

Avatar

Level 3

I have a drop down box from which the user chooses the name of their company.  If they choose "Not found" another text field pops up for them to add the name of their company.

I have a text field on a master page (a footer)  that I want to be populated with the user's selection from the drop down.  However, if they Choose "not listed" from the drop down, I would like the text field to be populated with the answer they submit themsleves in the next blank.

Really needing help with this before a deadline.  Just starting to learn about scripting. 

Thanks

1 Reply

Avatar

Level 10

DropDownList1.displayItem(DropDownList1.selectedIndex); returns the string of the displayed item....

is this what you looking for?