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

Conditional Format Check Box / Radio Buttons

New Here ,
Mar 04, 2024 Mar 04, 2024

Copy link to clipboard

Copied

Hi 🙂

 

I'm creating a PDF and want to use conditional formatting to make a specific check box (titled SCR) required if a certain radio box (titled STP and Grouped in EXT) is selected. Is this possible?

I also have a section that has 6 radio buttons (can be changed to check boxes if necessary). Is it possible to make at least 1 (can be more but needs at least 1) of the buttons/boxes required if the radio box (titled EVT Grouped in EXT) is selected?

 

Thanks so much for any help!! 

TOPICS
Create PDFs , How to , JavaScript , Modern Acrobat , PDF , PDF forms

Views

207

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 , Mar 04, 2024 Mar 04, 2024

- Yes. Create a (hidden) text field with the following calculation script:

this.getField("SCR").required = this.getField("EXT").valueAsString=="STP";

- You can't make just one field in a group (whether it's a group of radio-buttons or check-boxes) required, and not the rest. Nor is it possible to tick more than one item in a group. But you can make the whole group required, using the same type of code as give above. Just duplicate it (under the same field's calculation) with the new field name a

...

Votes

Translate

Translate
Community Expert ,
Mar 04, 2024 Mar 04, 2024

Copy link to clipboard

Copied

- Yes. Create a (hidden) text field with the following calculation script:

this.getField("SCR").required = this.getField("EXT").valueAsString=="STP";

- You can't make just one field in a group (whether it's a group of radio-buttons or check-boxes) required, and not the rest. Nor is it possible to tick more than one item in a group. But you can make the whole group required, using the same type of code as give above. Just duplicate it (under the same field's calculation) with the new field name and condition.

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
New Here ,
Mar 06, 2024 Mar 06, 2024

Copy link to clipboard

Copied

Thank you so much for your help, the script provided worked perfectly!

I currently have a group of 6 radio buttons, which I have set up to be required when a specific Text box is used.

Is there a way I could set up basically the same thing with check boxes, so that at least 1 is required, but more than 1  can be selected?

 

Sorry for being a pain! I know how to do very basic things in Adobe, but this goes beyond my scope of Adobe knowledge lol

Thanks again!!

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 ,
Mar 06, 2024 Mar 06, 2024

Copy link to clipboard

Copied

LATEST

It's possible, but more complicated. To do that you can't have them be named the same. They will have to be uniquely named, and then a script will have to check the group and see if one (or more) fields are ticked.

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