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

    How to prepare a custom coupon code?

    Asked by burhan061 on May 30, 2017 at 02: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.

  • Profile Image
    JotForm Support

    Answered by candy on May 30, 2017 at 03: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:

    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.

  • Profile Image

    Answered by burhan061 on June 13, 2017 at 09: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.

  • Profile Image
    JotForm Support

    Answered by candy 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!

  • Profile Image

    Answered by burhan061 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

  • Profile Image
    JotForm Support

    Answered by candy 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   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   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 

    -If the user enters a value equal to 6000, Calculate a field's value as .

     

    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.