Pinned topic Disable radio button
Please suggest suitable approaches to achieve the below:
Scenario : have a coach with multiple options selectable by radio buttons, i have to check for a text box for a certain value, and if the value does not match a certain criteria, one of the radio buttons have to be greyed out.
I can have the validations done in a js, but again this would mean that the validation would happen only after all the valued have been entered and on the click of the submit button.
Can anyone point me in the right direction that would give me a way to achieve a solution for the Scenario...?
BornikChatterjee 270002FWGC146 Posts
Re: Disable radio button2013-04-04T16:03:16ZThis is the accepted answer. This is the accepted answer.Hi G,
IBMNovice 2700044TUV3 Posts
Re: Disable radio button2015-06-04T23:41:03ZThis is the accepted answer. This is the accepted answer.
- BornikChatterjee 270002FWGC
Could you please paste the code that would go in change() that disables the radio button?
I tried the below and it didn't work for me:
var radioButton = this.context.element.querySelector("select");
radioButton.disabled = true;