Skip to main content
This topic has been closed for replies.

1 reply

BarlaeDC
Community Expert
Community Expert
October 18, 2022

Hi,

This can be done by using the validate function of the drop down list. but first make sure the "commit selected value immediately" is checked in the drop down properties.

 

Then you can add validation,

(for this validation my radio buttons are "Group8", and my text fields are name "TextField.1", "TextField.2", etc.....)

[ please note the dot in the text field]

 

This enables me to use this code on the validation event of the drop down list

// hide radio button group
this.getField("Group8").display = display.hidden;
// hide all text fields
this.getField("TextField").display = display.hidden;
if (event.value == "showAll") {
  // show radio button group
  this.getField("Group8").display = display.visible;
  // show all text fields
  this.getField("TextField").display = display.visible;
} else if ( event.value == "showText"){
  // just show the text fields
  this.getField("TextField").display = display.visible;
} else if ( event.value == "showRadio"){
  // just show the radio buttons
  this.getField("Group8").display = display.visible;
} else if ( event.value == "showTextOne"){
  // just show one text field.
  this.getField("TextField.1").display = display.visible;
}