How to Enable or Disable Fields Using Conditional Logic

June 8, 2022

Now you want to enable or disable your form fields based on the user’s input. That is possible using Jotform’s Conditional Logic.

Disabling or settings the form fields to read-only can be useful if you need to keep them visible while preventing the form fillers from changing the field values. Here’s a demo form to see how it works.

To conditionally enable or disable form fields…

  1. Go to the Settings tab in the Form Builder.
  2. Choose Conditions on the left.
  3. Add a new condition and select Enable/Require Field.
Enable/Require Field condition
  1. Next, set up the condition and action. In our demo form, the Conditional Logic would be as follows:
Read-only Condition

To break that down:

  • We’ve set the condition or IF statement to check if the “Read-only” field is equal to “Yes”.
  • The action or DO statement will disable all the fields if the condition is met.
  1. Click the Save button to save the changes.

If you have questions or concerns, feel free to comment below.

Was this guide helpful?
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments: