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

173

Likes

translate

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 , May 03, 2019 May 03, 2019
Not possible. The "read-only" property applies to the entire group as a whole.

Likes

translate

Translate

Translate
Most Valuable Participant ,
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.

Likes

translate

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.

Likes

translate

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

Copy link to clipboard

Copied

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.

Likes

translate

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