Skip to main content
Participant
May 3, 2019
Answered

How to disable one radio button within a group?

  • May 3, 2019
  • 2 replies
  • 1100 views

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.

This topic has been closed for replies.
Correct answer try67

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

2 replies

Inspiring
May 3, 2019

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.

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
May 3, 2019

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

jillt1319Author
Participant
May 3, 2019

Thank you for the info.