Radio Buttons

Community Beginner ,
Nov 27, 2018 Nov 27, 2018

Copy link to clipboard

Copied

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?

Screen Shot 2018-11-27 at 7.31.51 AM.jpg

TOPICS
Acrobat SDK and JavaScript

Views

327

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Most Valuable Participant , Nov 27, 2018 Nov 27, 2018
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");

Likes

Translate

Translate
Most Valuable Participant ,
Nov 27, 2018 Nov 27, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 27, 2018 Nov 27, 2018

Copy link to clipboard

Copied

Is this what you need?

Screen Shot 2018-11-27 at 8.36.38 AM copy.jpg

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Nov 27, 2018 Nov 27, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 27, 2018 Nov 27, 2018

Copy link to clipboard

Copied

Screen Shot 2018-11-27 at 8.42.53 AM.jpg

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Nov 27, 2018 Nov 27, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 27, 2018 Nov 27, 2018

Copy link to clipboard

Copied

LATEST

Once again, works perfectly. Thank you!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines