Can you use conditional logic (enable/require/show fields etc.

  • Profile Image
    The_Landing
    Asked on April 05, 2021 at 10:56 PM

    Can you use conditional logic (enable/require/show fields etc.) based on if certain coupon codes are used?



    This is a re-post of a comment on How to Add Coupon Code to Payment Forms

  • Profile Image
    Richie_P
    Answered on April 06, 2021 at 04:32 AM

    Unfortunately, you may not use conditions with the use of coupon on the product list.

    However, if you're using basic fields(short text,long text,number field) as your payment field, then it is possible to use conditions.

    Can you please share more information on how you would like to use condition with your coupon code or how you would like your form to work?

    May we know the form you're working on?

    Looking forward for your response.


  • Profile Image
    Rebecca 
    Answered on April 06, 2021 at 03:27 PM

    Hi there,

    Sometimes clients have difficulty completing the jotform transaction online (there was a period of 24 hours where the form would not accept any payments, or they prefer to use debit, or another circumstance that would require us to fill out the form on behalf of the client). We would use a coupon code in these instances to reflect that a payment was made outside of the epayment setup within jotform. If that coupon code is used for administrative purposes we like fields to show up for admin notes, dates, dollar value, etc. that only these clients would see when they receive a copy of the submission, but other clients filling out the form as intended online would not see.

    We are currently having a problem with the products list in our forms - the items selected are not showing up in the summary tab, rather we are getting 'paysafe_control' as the selection. This is a HUGE problem, not related to the coupon code conditional logic, but I figured if I have the ears and eyes from another person at Jotform, perhaps it can get resolved faster. It's making the forms useless at the moment.

    Thanks

  • Profile Image
    Jed_C
    Answered on April 06, 2021 at 09:16 PM

    It would only be possible if you create a custom payment and not using the product list. Here's a sample guide for you to check if custom payment would be something that will work for you.

    Guide: https://www.jotform.com/help/275-how-to-pass-a-calculation-to-a-payment-field

    If you are willing to try that, you will need to create your own coupon and possible create your own calculation for discounts. The positive side is you will be able to use the conditional logic for the coupons you've created.

    If that coupon code is used for administrative purposes we like fields to show up for admin notes, dates, dollar value, etc. that only these clients would see when they receive a copy of the submission, but other clients filling out the form as intended online would not see. — A conditional show and hide logic would work for this, but only if you create a custom payment which has a custom coupon setup. If it's in the product list, you won't be able to use the conditional rule.