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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Populate multiple items to a text field from a dropdown list

critski
Level 1
Level 1

I am trying to create a dropdown list that when I select an item from the list it adds the item into a text box but doesn't delete the previous text box item.  I am just struggling with how to get the text field to concatenate and not simply replace the existing data with the new.  I thought it might be something I could do with action builder but it doesn't seem possible with out additional scripting.

4 Replies
jasotastic81
Level 7
Level 7

Try this code on the exit event of your dropdown list:

tfList.rawValue = tfList.rawValue + " " + this.rawValue;

I'm presuming that the list you're adding items to is called tflist. If it doesn't work, let us know.

critski
Level 1
Level 1

Thanks that worked!  But how do I suppress it from displaying Null as the first response?

jasotastic81
Level 7
Level 7

if (tfList.isNull) tfList.rawValue = this.rawValue;

else tfList.rawValue = tfList.rawValue + " " + this.rawValue;