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

    if i wish to include a "promo code" column, how should i make sure its validated?

    Asked by spreewithlove on April 20, 2011 at 12:26 AM

    i don't want people to key random codes in and still get past the submission of form.

    any suggestions?

  • Profile Image
    JotForm Support

    Answered by NeilVicente on April 20, 2011 at 02:44 AM

    Hi,

    You can use conditions to validate the promo code entered by the user. You may either hide the submit button, or hide the form entirely unless the user enters a valid promo code.

    Take a look at this clone of your form which I modified to demonstrate the conditions' capabilities.

    I inserted a page break after the "Unique ID" field and have set the field as Required*

    Then, I created the following conditions:

     

    In this case, the only valid promo codes are promocode1, promocode2, promocode3, and promocode4.

    Check out my example and see for yourself if it exemplifies what you want to achieve.