Fields hidden if 2 radio buttons default is unchecked...
Hi all,
Have the script shown below. It works well in as much as when the relevant selections are made in the radio buttons (STEP), the var A,B,C all work as planned - but what I would like to do is that when the form is reset (i.e. radio button fields are unchecked), to have all fields hidden - which is where the last part is likely wrong in my script, but cannot get it to work - any ideas?;
var V = this.getField("STEP");
var A = this.getField("START_DEICE");
var B = this.getField("START_ANTIICE");
var C = this.getField("STOP_ANTIICE_DEICE");
if (V.value === "Choice1") {
A.hidden = false;
B.hidden = true;
C.hidden = false;
}
if (V.value === "Choice2") {
A.hidden = false;
B.hidden = false;
C.hidden = false;
}
if (V.value === "") {
A.hidden = true;
B.hidden = true;
C.hidden = true;
}
