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

Depending on the drop down answer, another question will appear

Avatar

Level 2

I am creating a document where a question such as "What country were you born in?" is asked.  If the answer is United States, then another field will pop up asking what state.  How do I do this?

0 Replies

Avatar

Level 10

Hi,

You are right to make the first question a drop down, because if it was a textfield and a user put in US, then the script would fail.

In the dropdown have the binding set to specify value. Note down the value for the "United States", let's say 4.

Then an exit event would look something like:

if (this.rawValue == 4)

{

     stateQuestion.presence = "visible";

}

else

{

     stateQuestion.presence = "hidden";

}

In the form set the initial/default presence of the stateQuestion to invisible or hidden (Object/Field).

Good luck,

Niall

ps happy independence day