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

    Stripe required and coupons

    Asked by michaelcinter on January 25, 2017 at 08:04 PM

    Hi!

    My form is being used as an event registration page with the stripe widget to pay by credit card, cash, or groupon. If the user wants to pay with cash, they are instruction to use the coupon code cash. The coupon takes 100% off the total price, and leaves a balance of zero at checkout. The payment field is required as i need this all guests to fill in this field for check-in purposes.

    Because the field is required, even though the balance is at zero its requring the user to fill out credit card information. I don't want it to do that. How can i fix this field?

    Thanks, 

    Mike

     

    Page URL:
    https://form.jotform.com/michaelcinter/show-bride-registration

  • Profile Image
    JotForm Support

    Answered by Ian on January 25, 2017 at 10:11 PM

    It seems like you figured it out by yourself.

    I tested the form and it let me bypass the CC information once the cash coupon is applied

    Let me know if yu still face any issue

  • Profile Image

    Answered by michaelcinter on January 26, 2017 at 07:45 AM
    I did. Thank you. However I still have a problem. If a user forgets to put
    a coupon code in, it highlights the credit card field as required. If I put
    in a coupon code afterwards, it forces the user to put in a credit card or
    I have to refresh the page. Do you have any idea how to fix it. Thanks
    ...
  • Profile Image
    JotForm Support

    Answered by Chriistian on January 26, 2017 at 08:13 AM

    Hi,

     

    I am currently checking your form. Please give me sometime to further investigate the issue. I will get back to you as soon as I get a workaround for the issue. 

     

    Regards.

  • Profile Image
    JotForm Support

    Answered by Chriistian on January 26, 2017 at 08:41 AM

    As a workaround to the issue, instead of using the coupon code "CASH" to payment field for cash payment option. Please try to add a Payment Option field instead on your form and create a new field for your product which will be shown/hidden depending on the Payment Option selected.

    Sample:

    When Payment Option > Cash is selected.

    When Payment Option > Credit Card is selected.

    You can check this sample form that I have created: https://www.jotform.com/form/70253850780961

     

    Here are the steps/guide to implement the workaround:

    1. Add Payment Option field (radio button).

    2. Add the Product Fields (Tickets and Quantity)

    3. Add a Form Calculation widget for the computation of the Total Amount set this to hidden so user will not be able to see the field.

    4. Add a text field to display the total. You can add "Total: <field name>" (i.e Total: {totalcalc}).

    5. Setup condition to show/hide fields.

     

    You can also clone the sample form that I have provided to have a closer look on the setup. To clone a form, just follow the instructions provided in this article: How to Clone an Existing Form from a URL.


    Do let us know if you need further assistance.
    Regards.