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

    Need Jotform to send a receipt after someone complete payment using jotforms payment form

    Asked by prozesta on May 24, 2012 at 07:04 PM



    If a user complete payment using jotforms payment intregration (in my case authorize.net) we would obviously need a way to send the user a receipt for an order. This is a neccessary functionality for users to benefit from payment integration. How can I setup jotform so it emails a receipt automatically after submission?


    I was thinking of using the autoresponder feature but there is a problem. The problem is I would need a unique order number generated and sent to the customer.


    Please advise.


    Thank you!

  • Profile Image
    JotForm Support

    Answered by jonathan on May 24, 2012 at 07:40 PM


    You can try adding a unique id field in the form (as the order number)


    Then add it in the autoresponder too


    Please inform us if this is not enough to what you need.


  • Profile Image

    Answered by prozesta on May 28, 2012 at 01:14 PM
    How would we make it so a new order number is generated for each purchase? Thanks.
  • Profile Image

    Answered by jeanettebmz on May 28, 2012 at 02:14 PM

    The Unique ID, is an auto-incremental unique number that will be generated for each purchase. You would need to setup an INDEX , to mark the starting number .

    You can also set it up with a Prefix , that will go before the ID. Example: JF-01


    You can also add a number padding , so given number of zeros will be added before the ID, example:  JF-0001


    Best regards


  • Profile Image

    Answered by mistersablon on July 27, 2012 at 01:23 PM

    Hi Jotform, this unique code is terrific, but is there a way that Jotform can auto generate a random unique code (alpha numeric) for each submission instead of incremental number?



  • Profile Image

    Answered by jeanettebmz on July 27, 2012 at 01:30 PM


    Unfortunately, this is not possible to accomplish with Jotform automatically

    A workaround would be to stablish a set of unique codes everyday, you can set them up in an alphanumeric format.

    However, if we notice an increasing number of people requesting this feature, we might consider to implement it in the future.


  • Profile Image
    JotForm Support

    Answered by jonathan on July 29, 2012 at 09:22 AM


    Hi, if you can use the form source code embed, you can add a simple javascript function such as this

    <script type="text/javascript">

    function generateHexString(length) {

        var ret = "";

        while (ret < length)

          ret += Math.random().toString(16).substring(2);

        return ret.substring(0,length);


    that can generate random unique number.

    I have a demo form with the script in action. You can also check its submission here.

    You can view the source code of the page(right-click)


  • Profile Image

    Answered by guest_23287996101055 on November 26, 2012 at 10:30 PM

    can somebody please explaine this step by step how to make this random number work.

  • Profile Image

    Answered by jeanettebmz on November 26, 2012 at 11:06 PM


    Can you please open a new thread with the same question, so you can provide us with details on your particular case, such as your FormID, fields' description or so forth ?

    I also would recommend you to register with a free account rather than using a guest one