Using condition to waive a required payment

  • hwoolfolk
    Asked on November 24, 2015 at 4:09 PM

    My form has a field that has 3 bullets that will reveal different payment option fields:

     

    echeck

    credit card

    * code

     

    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?

    Thanks

  • Kevin Support Team Lead
    Replied on November 24, 2015 at 6:29 PM

    Hi,

    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 : 

    Using condition to waive a required payment Image 1 Screenshot 30

    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 : 

    Using condition to waive a required payment Image 2 Screenshot 41

    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 : 

    https://form.jotform.com/53277366597976?

    Hope that helps.

    If you need further assistance, feel free to contact us.

    Thanks.

  • hwoolfolk
    Replied on November 25, 2015 at 9:46 AM
    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?
    thanks
    *T. Howe C. Woolfolk, Jr.
    *//
    ...
  • Kevin Support Team Lead
    Replied on November 25, 2015 at 11:46 AM

    Hi,

    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 :

    Using condition to waive a required payment Image 1 Screenshot 30

    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 :

    Using condition to waive a required payment Image 2 Screenshot 41 

    Here is my cloned form : 

    https://form.jotform.com/53277366597976?

    Let us know if it works, if not, we will be glad to assist you.

    Regards.