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 put conditions on text blocks?

    Asked by vopartwork on January 02, 2017 at 03:07 PM

    I used a text block for a promo code and marked it a required field.  I want to make it so that only people with the correct promo code are able to submit the form.  How can I do this?

    Page URL:

  • Profile Image
    JotForm Support

    Answered by BJoanna on January 02, 2017 at 04:35 PM

    If I understood you correctly you do not want that your users are able to submit the form is promo code is not correct. 

    You can use conditional logic to hide submit button if promo code is not correct. 

    Smart Forms Using Conditional Logic

    How to Show or Hide Fields Base on User's Answer

    For example if your promo code is: 12345, you can set your condition like this. 

    Here is my demo form: https://www.jotformpro.com/form/70016294319958 

    Feel free to test it and clone it.

    Hope this will help. Let us know if you need further assistance.