How to prepare a custom coupon code?

  • burhan061
    Asked on May 30, 2017 at 2:38 AM

    I want to have 2 Fields

    In First Field, Customer must enter value from INV5000 to INV6000 only

    In Second field, Customer will enter Invoice Date, that can be easily done in jotform.

    For First Field, I want help.

  • candy
    Replied on May 30, 2017 at 3:29 AM

    Hello,

    You can set an Input Mask to the Short Text Entry field in order to make it start with "INV5" as you can see in the screenshot below:

    How to prepare a custom coupon code? Image 1 Screenshot 20

    You can learn more about Input Masks in following guide: https://www.jotform.com/help/381-Getting-Started-with-the-basics-of-Input-Masking 

    I hope this helps. Let us know if you need further assistance.

    Thanks.

  • burhan061
    Replied on June 13, 2017 at 9:35 AM

    Hi Candy, But I don't want customers to see that value INV5..


    Because We are going to provide them special discount only when they know correct invoice number range.. Means we can know that they have purchased from us.

    We want to send mail for discount coupon to them for next order.

  • candy
    Replied on June 13, 2017 at 10:14 AM

    Hello again,

    Sorry for the misunderstanding. Your question was not clear enough.

    We have already a coupon feature in the payment gateways as you can find it at the following guide: https://www.jotform.com/help/233-How-To-Add-Coupon-Code-in-the-Payment-Form 

    You can set special discounts via the payment gateway.

    Please follow the guide and tell us if you need further assistance.

    Thank you!

  • burhan061
    Replied on June 13, 2017 at 10:33 AM

    No We don't want to use coupon feature of jotform, We are already using magento they have coupons function.

    In your previous answer, Input masking is perfect but is there any way that customers don't see that INV5..
    But They must type within that range INV5000-INV6000

  • candy
    Replied on June 13, 2017 at 11:19 AM

    Hello again,

    Please try my workaround as the following:

    1. Set a number field to the form in order to let your users enter a value.

    2. Set a text field to the form and make it hidden on the form. (Note: I have not set it hidden for now in order to let you see the values)

    3. Set 4 conditions to the form as the following as you can see the example screenshot below:

    -If the user enters a value greater than 0 and less than 10, DO ALL: Calculate a field's value as  How to prepare a custom coupon code? Image 1 Screenshot 60 and write into the Full Coupon.

    -If the user enters a value greater than 10 and less than 100, DO ALL: Calculate a field's value as How to prepare a custom coupon code? Image 2 Screenshot 71  and write into the Full Coupon.

    -If the user enters a value greater than 100 and less than 1000, DO ALL: Calculate a field's value as 

    How to prepare a custom coupon code? Image 3 Screenshot 82

    -If the user enters a value equal to 6000, Calculate a field's value as How to prepare a custom coupon code? Image 4 Screenshot 93.

     

    How to prepare a custom coupon code? Image 5 Screenshot 104

    All in all, the scenario you wanted will work as you can see in the following form: https://form.jotform.com/71634831323957 

    Feel free to clone it on your side in order to use.

    I hope this helps.

    Thanks.

  • burhan061
    Replied on June 14, 2017 at 2:51 AM

    I will tell you whole scenario what we want to do

    We will provide our print vouchers to customer for placing order on our website, they can use that voucher for next purchase.


    Now in next purchase we want to check if customer bought from us, We will check that by Invoice No. ie.INV5000 to INV6000

    So at the time of next purchase they have to enter invoice number, and we want to check if that invoice number ranges from INV5000 to INV6000

  • Saccarab
    Replied on June 14, 2017 at 4:19 AM

    Suppose I'm a customer of yours and I have a coupon sent to my email by you as "INV5466" what should be the input I enter on your form.

    Is it just the 466 or I should be typing the whole thing as INV5466 to get a valid discount and what do you want to be happening if I enter an invalid number.

    What I mean is do you want the Jotform do the Input checking and only accept the form submissions with valid ID's or let them submit anything so you can manually check Coupon ID's and provide them with discounts if necessary.