Skip to main content
Known Participant
Nov 27, 2018 2:29 PM UTC
Answered

Radio Buttons

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Nov 27, 2018 2:49 PM UTC


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");

6 replies

try67
Community Expert
Community Expert
Nov 27, 2018 2:32 PM UTC

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

Translate
Known Participant
Nov 27, 2018 2:40 PM UTC

Is this what you need?

Translate
try67
Community Expert
Community Expert
Nov 27, 2018 2:43 PM UTC

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.

Translate