You will need to name the buttons and fields consistently Say the button is called Button and the choices are R1 and R2. Call the fields Field1, Field2, Field3, Field4. var Q = this.getField("Button"); var A = this.getField("Field1"); var B = this.getField("Field2"); var C = this.getField("Field3"); var D = this.getField("Field4"); if (Q.value === "R1") { A.hidden = false; B.hidden = true; C.hidden = true; D.hidden = true; } if (Q.value === "R2") { A.hidden = true; B.hidden = false; C.hidden = false; D.hidden = false; } you need the code to be on both radio buttons, i would put them on the Mouse Release You can also affect the required in the same way as the hidden property (but remember having it hidden and required leads to frustration) Hope that helps
... View more