Answered
This topic is closed to new replies. Start a new post to keep the conversation going.
if (this.getField("Registered In").valueAsString=="0") event.value = event.target.defaultValue;
Can you add more to this code to make the drop-down menu hidden again?
Thank you.
Use this as the whole code:
if (this.getField("Registered In").valueAsString=="1") {
event.target.required = true;
event.target.display = display.visible;
} else {
event.target.required = false;
event.target.display = display.hidden;
event.value = event.target.defaultValue;
}Sign up
Already have an account? Login
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inSign in to Adobe Community
No account yet? Create an account
To post, reply, or follow discussions, please sign in with your Adobe ID.
Sign inEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
