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

    Multiple Certificate option?

    Asked by visitationpto on June 27, 2016 at 11:46 AM

    I have set-up a form selling gift certificates here but want people to be able to buy multiple gift certificates.  However when they purchase now they only get one certificate number.  How can I make it so that they get one e-mailed certificate per the quantity they choose?

    Page URL:
    https://form.jotform.com/visitationpto/waldo-pizza

    style size height purchase
  • Profile Image
    JotForm Support

    Answered by Charlie on June 27, 2016 at 01:26 PM

    I cloned your form and I see that you are using the Unique ID widget as the certificate number generator.

     

    Unfortunately, the unique ID widget can only generate one unique ID per submission, meaning even if your users have more than 1 quantity in their total purchase, the submission is still considered only one. If they want to have multiple certificate numbers, then they will need to submit the form multiple times.

     

    However, I believe this is somehow possible. Here's what I have in mind:

    1. Your Certificate Number is generated like this:

    CERT#90002

    Now if the quantity if greater than 1, then the formatting or increment would be at the end like this:

    CERT#90002-Q2

    CERT#90002-Q3

    CERT#90002-Q4

    and so on...

     

    2. Now this cannot be done in the widget, so we will hard code it in our emails. I presume you want ONE email per certificate number? Now in my end, I create autoresponder emails specific on the quantity of the products.

     

    3. Now on each autoresponder email, I will append the sub increment on the unique ID widget, this is how it looks like:

    For product quantity "2", the certificate number will be like this {certificateNumber}-Q2

    For product quantity "3", the certificate number will be like this {certificateNumber}-Q3

     

    Now you can repeat this to other autoresponder emails that you will be creating, I presume you'll need to have 10 autoresponder emails because the max quantity for your product is 10.

     

    4. Now we do not want to send those autoresponder emails by default, we will only send them depending on the quantity selected. We will use conditional logic for it. Here's a guide that you can refer to: https://www.jotform.com/help/167-How-to-Send-Email-Based-on-Selection 

    In the "IF" statement of the conditional logic, it will allow you to use the quantity of the selected product as part of the rule:

    Now my conditional logic for quantity 2 is like this:

    IF Quantity of 

    Waldo Pizza $0.35 Test Certifificate $0.35 OR

    Waldo Pizza $25 Gift Certificate $25.00 OR

    Waldo Pizza $50 Gift Certificate $50.00

    IS EQUAL to "2"

    THEN

    Send autoresponder email "Email Gift Certificate Quantity 2"

     

    How about for quantity 3?

    IF Quantity of 

    Waldo Pizza $0.35 Test Certifificate $0.35 OR

    Waldo Pizza $25 Gift Certificate $25.00 OR

    Waldo Pizza $50 Gift Certificate $50.00

    IS EQUAL to "3"

    THEN

    Send autoresponder email "Email Gift Certificate Quantity 2"

    Send autoresponder email "Email Gift Certificate Quantity 3"

     

    Noticed that in quantity 3, we need to send the autoresponder email for quantity 2, why? Because it won't be triggered. Remember that we are using "IS EQUAL TO" and NOT is less than or greater than. This means the following quantity conditional logic will looks like this:

    For quantity 4:

    IF Quantity of 

    Waldo Pizza $0.35 Test Certifificate $0.35 OR

    Waldo Pizza $25 Gift Certificate $25.00 OR

    Waldo Pizza $50 Gift Certificate $50.00

    IS EQUAL to "4"

    THEN

    Send autoresponder email "Email Gift Certificate Quantity 2"

    Send autoresponder email "Email Gift Certificate Quantity 3"

    Send autoresponder email "Email Gift Certificate Quantity 4"

     

    For quantity 5:

    IF Quantity of 

    Waldo Pizza $0.35 Test Certifificate $0.35 OR

    Waldo Pizza $25 Gift Certificate $25.00 OR

    Waldo Pizza $50 Gift Certificate $50.00

    IS EQUAL to "5"

    THEN

    Send autoresponder email "Email Gift Certificate Quantity 2"

    Send autoresponder email "Email Gift Certificate Quantity 3"

    Send autoresponder email "Email Gift Certificate Quantity 4"

    Send autoresponder email "Email Gift Certificate Quantity 5"

     

    And so on...

     

     

    Now your users will receive separate autoresponder emails with different certificate numbers based on the quantity of the selected product.

    Let us know if you need more help on this.

     

    Just a tip: Please do check this guide on how to use the Unique ID widget: https://www.jotform.com/help/79-How-to-Add-Custom-Unique-IDs-to-your-Form-Submissions