What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    How Can I Disable Specific Radio Buttons in a Radio Button Field (Radio Group)?

    Asked by ecosse3 on March 16, 2015 at 04:46 PM

    Hello. I have simple question.


    How can I do disabled option in radio button? I want that this option will be visible but anyone can't check it. It is possible? Just like "read only" mode.



    read only disable radio button read-only button
  • Profile Image
    JotForm Support

    Answered by abajan on March 16, 2015 at 07:26 PM

    Unfortunately, there's no way to accomplish this functionality in the form builder. However, if the full source of the form is embedded in a web page, a script can be added to the same page to do this, as in this demo. If you look at the bottom of the page's source, you'll see the script.

    If you need further help with this, we'd be glad to provide it.


  • Profile Image
    JotForm Support

    Answered by abajan on March 16, 2015 at 08:38 PM

    Hi again,

    In case you wanted to disable multiple buttons in a radio group, here's another demo. Now, you may be wondering how to apply the scripts to your particular form. Let's revisit the first demo. First, you need to find out the ID of the radio button to be disabled (read-only would actually be a more correct term) Please see this guide on how to find field IDs. This is the jotform used in the demo. If you were to clone it and examine the properties of its radio group, you would see the following information:

    The ID indicated is that of the second radio button. That same ID appears on the second line of the script. So, whatever the ID of your jotform's radio button is would go there.

    Now, let's look at the script in the second demo. This time there are multiple IDs on line 2. As you would no doubt have guessed, those are the IDs of the "disabled" radio buttons. So, once again, it would just be a matter of substituting the IDs of your own form's radio buttons.

    If anything's unclear, please let us know.


  • Profile Image

    Answered by ecosse3 on March 17, 2015 at 10:41 AM

    Everything is okay. ID of my field is #input_12_2, so my code will be like this, but where have I paste this PHP code?

    Thank you

  • Profile Image

    Answered by Shadae on March 17, 2015 at 12:08 PM

    Hi ecosse3,

    You would need to obtain the full source code of your form and you can add that script at the end.

    You would then embed your form using that code.

    I hope this helps, please inform us if you need further assistance.


  • Profile Image

    Answered by ecosse3 on March 17, 2015 at 12:14 PM

    Everything working! Thank you very much for being so accurate help. JotForm is the best form builder which I've ever used!

  • Profile Image
    JotForm Support

    Answered by BJoanna on March 17, 2015 at 01:44 PM

    On behalf of my colleagues, you are welcome.

    Do get back to us if you have any questions.

    Thank you!

  • Profile Image

    Answered by Senaid on March 02, 2016 at 06:32 AM

    Hey guys! Is it possible to extend that little script with a condition?

    For example:

    If I check Option 1 then Option 2 is disabled.


    I'm not really into scripting, so I would be really grateful for your support!

    Thank you!

  • Profile Image
    JotForm Support

    Answered by Charlie on March 02, 2016 at 09:13 AM


    To better assist you, I have opened a separate thread for your concern. Please refer to this link instead: http://www.jotform.com/answers/785571. We will address it accordingly. Thank you.