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

    Prohibit certain values?

    Asked by jerrwang on June 04, 2014 at 04:53 PM

    Hello,  Is there a way throw a error message if user submits certain values in certain fields?  For example, if user types "Christine" in the name field, then return an error message saying "Sorry, Christine is not unable to register because due date has past for him/her."

     

    Thank you.

    name message register due date
  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on June 04, 2014 at 08:56 PM

    1. You can do that by adding a text field with the error message

     

    You can add also a Date/Time field, and set the default date (click on Default Time button) , while disabling the Time itsel (so it won't show hours and minutes)

     

    2. Then adding a conditional logic with 2 rules (if you will , you can add the rule for the Date)

    If NAME field is EQUAL TO  Christine

    If DATE field AFTER 'today'  (you can vary this

    THEN SHOW  "Sorry, Christine..."

     

    Otherwise, only the first rule would be enough.

    Let us know should you have more questions on regards to this.

  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on June 04, 2014 at 08:58 PM

    I forgot to post my test form

    http://form.jotformpro.com/form/41547972435967

    if you put "Christine" or a date later than 'today'  , the message will appear.