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?
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";
stateQuestion.presence = "hidden";
In the form set the initial/default presence of the stateQuestion to invisible or hidden (Object/Field).
ps happy independence day