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.
Using condition to waive a required paymentAsked by hwoolfolk on November 24, 2015 at 04:09 PM
My form has a field that has 3 bullets that will reveal different payment option fields:
If someone chooses the "code" option a text field appears. I want the text field to require a specific "code" that if not correct will not permit the form to be submitted... That if not correct an error message will appear similar to not entering a require field. I will create multiple "codes" for specific reasons.
Can this be done?
required payment a text field message bullets different
Thank you for contacting us.
The only way I found to do it is setting a condition, you should hide the submit button only if the payment type is Code and show it if the entered Code is correct, to do it just follow these steps :
1. Change the condition to show the Enter Code field, add the action hide for hide the submit button :
2. Now, add the condition for the Enter Code field, you will have to add all the codes you want to use, I just added two, but you can add more than two :
And now, when the payment type selected is Code the submit button will be hidden and won't be displayed only if the entered Code is correct.
Here is my sample form, try using the codes ABC and TEST, you can also clone it if you want :
Hope that helps.
If you need further assistance, feel free to contact us.
I totally understand the logic... but the submit button is not showing
up :( I even cloned the form you made with no success. Has something
been left out?
*T. Howe C. Woolfolk, Jr.
Upon checking the conditions, it seems to be a confilct, hiding the submit button when the Code is selected and trying to show the button again when the entered Code is correct.However, there is a way to do it, you only have to change the structure of the conditions and add one more and now your form will be working fine :
Remove the conditions provided above and your conditions should look like this :
Do note, I show the button when the Payment Option is echeck or Credit Card instead of hide the button when the Payment Option is Code.This will prevent the conflict between conditions.
Here is a sample image,you can see how is working in my end,you can try with the same test codes ABC and TEST :
Here is my cloned form :
Let us know if it works, if not, we will be glad to assist you.