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 do I enable or disable a radio button based on a condition from a different field value?

    Asked by yogishchandra on July 14, 2017 at 10:56 AM

    Hi,

    I wish to enable a particular radio button in a field based on a value in a different field.

    For example:

    I have to radio button under a field. Button 1 and Button 2

    And I have a Textbox.

    If I enter 1 in text box Button 1 must be auto selected.

    If I enter 2 in text box then Button 2 must to auto selected.

    If text box is empty or if text box has a different value then non of the Buttons must be selected.

     

     

  • Profile Image
    JotForm Support

    Answered by Nik_C on July 14, 2017 at 01:00 PM

    You could use our disable conditions:

    And create a condition when text is not equal to 1 or 2 or if it is empty, radio buttons will be disabled:

    Also, when 1 or 2 is selected appropriate radios will be selected:

    And here is my test form so you can check: https://form.jotformpro.com/71944773459976

    Please let us know if that is what you had in mind or if you have any further questions.

    Thank you!