Show/Hide field based on a choice from a dropdown field which contains a specific word
I have a dropdown field (Type_Study) with 10 options, 4 of which begin with the word "Sensitization."
I have 2 fields which only need to be visible if:
a) the choice from the dropdown includes "Sensitization" or "all", and
b) if a different dropdown (Storage1) is not equal to "Select Option"
I believe I would need to add a custom calculation script to the fields to be visible or hidden and I have the script to make the field visible based on b) but I do not know how to script a) and combine it with b).
So far, I have:
if (this.getField("Storage1").value != "Select Option") {
event.target.display = display.visible;
} else {
event.target.display = display.hidden;
}
Any help would be appreciated.
Thanks,
Jane
