Skip to main content
Known Participant
November 27, 2018
Answered

Radio Buttons

  • November 27, 2018
  • 1 reply
  • 891 views

When the Use custom list radio button is selected I would like the 2 groups below it to become required fields. Group 1 will have one of the two radio buttons selected and the same with Group 2. Is this possible?

This topic has been closed for replies.
Correct answer try67


OK, so here's how I would do it. Create a (hidden) text field with the following custom calculation script:

this.getField("Radio Button 4").required = (this.getField("Radio Button 3").valueAsString=="Choice3");

this.getField("Radio Button 5").required = (this.getField("Radio Button 3").valueAsString=="Choice3");

1 reply

try67
Community Expert
Community Expert
November 27, 2018

What's the field name and "Radio button choice" value of the first radio-button?

Known Participant
November 27, 2018

Is this what you need?

try67
Community Expert
Community Expert
November 27, 2018

That's the field names, but what's the export value of the third one in "Radio Button 3"? You'll find it under the field's Properties - Options tab.