• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

611

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

Community Expert , 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");

Votes

Translate

Translate
Community Expert ,
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?

Votes

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

Votes

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 Expert ,
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.

Votes

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

Votes

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

Votes

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!

Votes

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