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

    Can JotForm automatically generate a unique number and save it to a separate field?

    Asked by Robb Auspitz  on November 20, 2016 at 06:06 PM

    My client wants to create a membership intake form for a "VIP Club." She would like the form to automatically generate a unique membership number and save it to a field that would be labeled "membership ID", or something similar. Can this be done with JotForm? Many thanks for your help!


    Robb Auspitz


  • Profile Image
    JotForm Support

    Answered by liyam on November 20, 2016 at 09:41 PM

    Hello Robb,

    You can add this Unique ID widget in your form to create a unique ID: https://widgets.jotform.com/widget/autoincrement

    This guide will also give you more information on how to use the field: https://www.jotform.com/help/79-How-to-Add-Custom-Unique-IDs-to-your-Form-Submissions

    If you have questions, please let us know.


  • Profile Image

    Answered by AA_C on November 20, 2016 at 10:13 PM

    I think your looking for a random number generator.

    You might want to try some simple java script to do what you want like;

    This example creates a 5 or 6 digit number.



    <p>Click the button to display a random number </p>

    <button onclick="myFunction()">Try it</button>

    <p id="mynumber"></p>


    function myFunction() {

        var x = document.getElementById("mynumber")

        x.innerHTML = Math.floor((Math.random() *900000) + 10000);