Copy link to clipboard
Copied
Hi i cant seem to find an answer to this..
I have a dropdown list. The first two options reveal two different text boxes.
The remaining 2 options should reveal the same third textbox
I am using this javascript:
if (event.value == "Employed / Self Employed") {
this.getField("GrossSalaryx75-12688").display = display.visible;
} else {
this.getField("GrossSalaryx75-12688").display = display.hidden;
}
if (event.value == "Unemployed") {
this.getField("GrossSalaryx75").display = display.visible;
} else {
this.getField("GrossSalaryx75").display = display.hidden;
}
if (event.value == "on Jobseekers Benefit")
if (event.value == "on Disability Benefit") {
this.getField("New o").display = display.visible;
} else {
this.getField("New o").display = display.hidden;
}
The first two work but the other options dont. 😩
Is this the right approach? Im really new to this sorry and thanks for any support!
Ian.
Copy link to clipboard
Copied
Use this:
if (event.value == "on Jobseekers Benefit"
|| event.value == "on Disability Benefit") {
this.getField("New o").display = display.visible;
} else {
this.getField("New o").display = display.hidden;
}
Copy link to clipboard
Copied
Use this:
if (event.value == "on Jobseekers Benefit"
|| event.value == "on Disability Benefit") {
this.getField("New o").display = display.visible;
} else {
this.getField("New o").display = display.hidden;
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now