Unique ID Widget: Need multiple unique IDs on one form

  • reggiejohnson
    Asked on May 7, 2024 at 4:47 PM

    HiI, I learned how to add a unique, sequential ID to a form using the Unique ID widget. However, I'm creating a vehicle registration form and users can register up to four vehicles. I will need a unique ID for EACH of their vehicles that is different than the others. When I use the Unique ID widget, it returns the same ID number for each of the four instances of the widget.

    Is there a way to get a unique sequential ID for four different items on one form?

    (You will notice above the Unique ID fields I was experimenting with using the Random Number widget as a way to generate different, unique IDs for each of the four items. But sequential numbers would be preferable.)

  • Sim JotForm Support
    Replied on May 7, 2024 at 5:45 PM

    Hi Reggie,

    Thanks for reaching out to Jotform Support. I understand the issue, but I’ll need a bit of time to work out a solution. I’ll get back to you shortly.

    Thanks for your patience and understanding. We appreciate it.

  • Sim JotForm Support
    Replied on May 7, 2024 at 9:38 PM

    Hi Reggie,

    Thanks for your patience. I’m sorry you're having difficulties with this. While the feature you’re looking for isn’t currently, available. We do have a workaround for it where you can pass the form information and the prefill it using the same form, and they can submit the information with one submission per vehicle. Or Embed the same form using iframe widgets up to 3 instances. Then add a dropdown asking how many cars to register. Then, using conditions, show the number of iframe widgets based on selected dropdown option. The limitation is that, the user need to re-type the information to the embedded forms. Let me show you how:

    1. Open your form in Form Builder, then click on Publish in the orange navigation bar at the top of the screen.
    2. Now, click on Prefill in the menu on the left side of the screen, and then select Form Prefill.
    3. Select the form that you want to prefill from, then choose the fields you want to take data from.
    4. Click on Save Settings, and that’s it.

    Unique ID Widget: Need multiple unique IDs on one form Image 1 Screenshot 20

    Using Jotform's Conditions feature, you can create a number of conditions, like the ones you see below:

    1647583081 62341f694ad10 Screen Shot 202 Screenshot 31

    It's really easy to do, let me walk you through it:

    1. Open your form in Form Builder, and in the orange navigation bar at the top of the page, click on Settings.

    2. In the menu on the left side of the page, click on Conditions.

    3. Click on Add a New Condition and select a Condition Type.

    1647583614 6234217e710f8 screencast 2022 Screenshot 42

    4. In the If field, select the field that you want to trigger the condition.

    5. Then, select a Field State.

    6. In the Do field, select an action.

    7. Now, select a field, click on Save, and you're done.

    1647583842 62342262dce1f screencast 2022 Screenshot 53

    While the feature you’re looking for isn’t currently available, rest assured we’re always working to add new services and features to Jotform. I've gone ahead and escalated your request to our Developers. When or if it's implemented depends on their workload, how viable it is, and how many other users request it. If there are any updates, we’ll circle back to this thread and let you know.

    Keep us updated and let us know if you need any more help.

  • reggiejohnson
    Replied on May 8, 2024 at 11:43 AM

    I can accomplish my goals by using the Unique ID and just adding, say, "-1", "-2", "-3", and "-4" to the vehicle sticker numbers in a separate calculated field. So the if the Unique ID is 0005 then my sticker IDs will be 0005-1, 0005-2, 0005-3, and 0005-4, based on how many cars they enter. The only problem I have is that the Unique ID isn't calculated until after the form is submitted. So my unique ID may come back as say 0007 (if it's the seventh entry), but my sticker IDs are coming back as 0001-1, 0001-2, 0001-3, 0001-4 every time.

    Is there a way to put my (up to) four sticker numbers with the "-1" or "-2" strings added to the correct Unique ID into the submission database automatically?

  • Mikhail JotForm Support
    Replied on May 8, 2024 at 12:37 PM

    Hi Reggie,

    Thanks for getting back to us. I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

    We really appreciate your patience and understanding. 

  • Mikhail JotForm Support
    Replied on May 8, 2024 at 4:09 PM

    Hi Reggie,

    Thanks for patiently waiting. I moved your other question to a new thread and helped you with that here.

    Let us know if you have any other questions.

 
Your Answer