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

How to disable one radio button within a group?

Community Beginner ,
May 03, 2019 May 03, 2019

Copy link to clipboard

Copied

Hello, I am trying to figure out if you can set one radio button within a group to read only. I know how to make it work for disabling the whole radio button group with the following Mouse Up JavaScript:

this.getField("Style").readonly=true;

Within the "Style" group I have two radio buttons, "A" and "B". How do I alter the above script to just set radio button "A" to read only?

Thank you.

TOPICS
Acrobat SDK and JavaScript

Views

646

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 , May 03, 2019 May 03, 2019

Not possible. The "read-only" property applies to the entire group as a whole.

Votes

Translate

Translate
Community Expert ,
May 03, 2019 May 03, 2019

Copy link to clipboard

Copied

Not possible. The "read-only" property applies to the entire group as a whole.

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 ,
May 03, 2019 May 03, 2019

Copy link to clipboard

Copied

Thank you for the info.

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
LEGEND ,
May 03, 2019 May 03, 2019

Copy link to clipboard

Copied

LATEST

I don't know if would help in your situation, but you can hide one or more radio buttons in a group. This would make it unselectable, leaving any unhidden ones selectable.

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