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

Script for drop-down list

Avatar

Level 1

I'm trying to add a drop down list into an existing form who's content is dependent on the selection made in another drop-down list on the same form. How do I do this?

0 Replies

Avatar

Level 10

Hi,

The easiest route is to create the second dropdown list and then in the Object > Field tab set its presence to "invisible" or "hidden".

Then in the first dropdown list you could put script in the exit event to change the presence of the second dropdown. For example:

if (this.rawValue == "Show me another list")

{

     secondDropdown.presence = "visible";

}

else

{

     secondDropdown.presence = "hidden";

}

Hope that helps,

Niall