PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Deactivate a choice of a radio buttons field

  1. Hi,
    Is there a way to deactivate one (or several choices) of a radio buttons field without hiding it (or them) ? In order to keep it visible to the user but with no possibility to select it.

    Thank you,

    Cedric

    Posted 11 years ago on Wednesday January 23, 2013 | Permalink
  2. Ok, after more research, it seems that the only way to disable an option is to use javascript.

    Posted 11 years ago on Wednesday January 23, 2013 | Permalink
  3. That is correct. Did you need help with the JavaScript to disable a radio button, or did you already work it out? If you need help, please post a link to the page on your site where the form is embedded and let us know which options you want to hide.

    Posted 11 years ago on Wednesday January 23, 2013 | Permalink
  4. Thank you for your reply.

    I used used a little bit of jQuery to disable the wanted choices like this:

    $(".gform_classname_wanted_choice input").attr("disabled","disabled");

    Posted 11 years ago on Friday January 25, 2013 | Permalink
  5. Glad you figured it out. Thank you for the update.

    Posted 11 years ago on Friday January 25, 2013 | Permalink

This topic has been resolved and has been closed to new replies.