By samtheory2718 on
I have a form with a radios type, but I want one of the choices to be greyed out depending on a conditional. Is there a way to do this?
I have a form with a radios type, but I want one of the choices to be greyed out depending on a conditional. Is there a way to do this?
Comments
You could simply do this with
You could simply do this with some jquery or have you had a look at the Conditional Fields module?
I haven't looked at this
I haven't looked at this module, but just to clarify, it's the greying out of a radio button that I'm having questions with - how would I use jquery to do this?
Disables:
Disables:
$("#button").attr("disabled", "disabled");Enables:
$("#button").removeAttr("disabled");Where the button has the css id #button
Have a look at
Have a look at this:
http://drupal.org/node/284917
This solved the problem for me. (#disabled_options = array(1, 2, 3))