Copy link to clipboard
Copied
this.getField("AMULAT MECHES").display = (this.getField("Group19").valueAsString == "Choice1") ? display.visible : display.hidden;
Try this:
this.getField("AMULAT MECHES").display =
(this.getField("Group19").valueAsString == "Choice1" || this.getField("Group19").valueAsString =="Choice2")
? display.visible : display.hidden;
Copy link to clipboard
Copied
How did you add Choice2?
Copy link to clipboard
Copied
I tried various ways
this.getField("AMULAT MECHES").display = (this.getField("Group19").valueAsString == "Choice1" || "Choice2") ? display.visible : display.hidden;
this.getField("AMULAT MECHES").display = (this.getField("Group19").valueAsString == "Choice1") || this.getField("AMULAT MECHES").display = (this.getField("Group19").valueAsString == "Choice2")? display.visible : display.hidden;
Copy link to clipboard
Copied
Almost... Use this:
this.getField("AMULAT MECHES").display = (this.getField("Group19").valueAsString == "Choice1" || this.getField("Group19").valueAsString=="Choice2") ? display.visible : display.hidden;
Or:
var v = this.getField("Group19").valueAsString;
this.getField("AMULAT MECHES").display = (v == "Choice1" || v=="Choice2") ? display.visible : display.hidden;
Copy link to clipboard
Copied
Try this:
this.getField("AMULAT MECHES").display =
(this.getField("Group19").valueAsString == "Choice1" || this.getField("Group19").valueAsString =="Choice2")
? display.visible : display.hidden;