Generating Multiple ID #'s in the same form, based on users selection.

  • srcc01
    Asked on February 12, 2018 at 2:55 PM

    I have made a form that creates membership cards for people. Based on your choice it emails you the membership cards you created online. If you pick 'family" option in this form and select the spouse and three children, it emails you 4 cards (it includes the primary person). I have a field that generates a membership number and increments the ID number every time. The problem I am getting is that the spouse and all children generate the same ID number, the primary person has a different one. They should all have different ID's.

    Can you look?

  • Richie JotForm Support
    Replied on February 12, 2018 at 4:31 PM

    I checked your form and it seems you have added Unique ID to auto increment and generate your ID number.

    I tested your form and it seems you the ID numbers are all set to 100, kindly edit them to different numbers so that they would be unique.

    Generating Multiple ID #s in the same form, based on users selection Screenshot 50

    Generating Multiple ID #s in the same form, based on users selection Screenshot 61

    The user id.

    Generating Multiple ID #s in the same form, based on users selection Screenshot 72

    First child.

    Generating Multiple ID #s in the same form, based on users selection Screenshot 83


  • srcc01
    Replied on February 12, 2018 at 4:49 PM

    Hi  - I tried that, they are all changed now, and it still seems to generate the same number. Ideally all IDs handed out would be sequential instead of having everything separated into blocks; so in this case there would appear to be a block for spouse, a block fo first child etc. Can you have a look?

    1518472116Screen Shot 2018 02 12 at 2 Screenshot 10

  • David JotForm Support Manager
    Replied on February 12, 2018 at 6:29 PM

    Unfortunately, the Unique ID feature does not work based on user's answer, it gets triggered every time your form is submitted, that is the reason why all IDs are generating the same number.

  • srcc01
    Replied on February 12, 2018 at 6:34 PM

    so if I want to buy several passes, or tickets etc at once, I would have to buy one at a time? Is there another way to achieve this other than using unique ID?

  • David JotForm Support Manager
    Replied on February 12, 2018 at 8:07 PM

    Unfortunately, there isn't any other field or widget that would help generating multiple ID #'s in the same form. 

    I have sent this to our back-end team as a feature request. If this is implemented in the future, you will be updated via this thread.

  • srcc01
    Replied on November 5, 2018 at 11:39 AM

    Hi - I am seeing if there was any change to this situation yet? If not, is there a work around where I can use the same unique ID number but add some sort characters to each individual? For example

    main subscriber ID 1000

    spouse ID 1000SP

    first child ID 1000FC

    second child ID 1000SC

    third child ID 1000TC


    is that possible?

  • arthurprc
    Replied on November 5, 2018 at 1:05 PM

    It would not be possible to add these custom characters in the same submission, though it might be possible to add a numeric value with an update/calculate field condition:
    1541440920idfilled Screenshot 10

    You might be interested in checking the custom ID widget guide:
    -How-to-Add-Custom-Unique-IDs-to-your-Form-Submissions

    In order to avoid the calculated fields with a similar result to the following generated IDs, you could add a value like 1000, 2000 etc (instead of + 1 like my example screenshot).

    Let us know if you need further assistance.