Is there a way to create a custom error message for one field?

  • Jerole
    Asked on January 10, 2019 at 12:26 PM

    I have two different discount codes on a client's form to reserve a Valentine Dinner. The form is on my client's account, the clone is on mine.

    "xoxo" reduces the cost by 50%, "bemine" is free.

    There are a series of conditions to make this work and get the proper price to PayPal in addition to displaying the proper messages.

    If someone enters an incorrect code, the conditions do not work right.

    I looked into validations, error messages, if this...conditions.

    Is there a way to create a custom error message for one field?

    Below is a link to the cloned form.

  • Richie JotForm Support
    Replied on January 10, 2019 at 1:16 PM

    Unfortunately, there is no validation error for conditions to show.

    However, you may try adding a text element field below the field that you want to show an error message.

    Is there a way to create a custom error message for one field? Image 1 Screenshot 20

    And use the show/hide condition to show the text element when the input is incorrect.

    https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer


    Please give it a try and let us know if this fits your requirements.

  • Jerole
    Replied on January 10, 2019 at 5:16 PM

    Thanks for the idea, however, people can put in a code or leave it blank.

    I do I handle a blank field which is in fact correct? 

  • jonathan
    Replied on January 10, 2019 at 6:19 PM

    I apologize for I was not able to fully understand your latest response. Can you please clarify and provide more details.

    From what I get from previous suggestion by our colleague, you can use the TEXT field to create your custom error message for the one field.

    Example:

    1547162202zzz 2019 01 11 07 Screenshot 10


    then use Conditions to show the custom error message/text.

    1547162242zzz 2019 01 11 07 Screenshot 21


    You can test it on my test form here https://form.jotform.com/90096986500968

    1547162321zzz 2019 01 11 07 Screenshot 32


    Let us know if this workaround solution will not work for you.



  • Jerole
    Replied on January 10, 2019 at 6:47 PM

    Great this is exactly what I needed. Thinking like an application.

    Thanks