-
JeroleAsked 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.Page URL: https://form.jotform.com/90094755955166 -
Richie JotForm SupportReplied 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.
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.
-
JeroleReplied 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?
-
jonathanReplied 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:
then use Conditions to show the custom error message/text.
You can test it on my test form here https://form.jotform.com/90096986500968
Let us know if this workaround solution will not work for you.
-
JeroleReplied on January 10, 2019 at 6:47 PM
Great this is exactly what I needed. Thinking like an application.
Thanks