Using the New Builder?
If your process requires a unique Submission ID at the start of the Submission instead of at the end when the Submission ID is generated, multiplying a date and time field is an easy workaround.
Random Number Generation
Creating a unique number generator takes only three fields and a few easy steps.
Configure the Fields
- Add a Date field to the center workspace and label it "Hidden Date."
- Add a Time field and label it "Hidden Time."
- Add a Calculation field and label it something like, "Unique Number Generator" or "Submission Number."
- Select the date field to open Field Settings in the left panel, expand the More drop down, and uncheck Mobile Visible.
- Select the time field to open Field Settings, change the Style to HH:MM:SS, and leave the Default Value as "Current Time."
- Expand the More drop down, and uncheck Mobile Visible.
- Select the calculation field to open Field Settings and select Create Calculation.
- If these are the first and/or only fields in your form, the Operator 1 and Operator 2 will automatically default to the date and time fields. Otherwise, expand each drop down to select these fields.
- Hover over the addition sign to expand the functions list and select multiplication.
- Toggle to the Format tab to adjust to No Decimal Places. Select Done to save changes and close the modal.
How it Looks
Once you Save and Publish, the result on mobile will look like this:
How it Works
The number generated isn't truly random; it is always going to be a product of the date and time, converted into an integral numeric string. While it is technically possible for the number to duplicate between different users, they would have to generate the number within the same second and date to have an identical number.
Pair with Dispatch and Workflow
If this number needs to be received by the office admin before the job, one way to do this is to use Dispatch and Workflow. The dispatcher in the office can generate a submission, dispatch it to themselves, check their device to get the number, and workflow it to the person who will be completing the job. If you are using Bulk Dispatch, remember to make sure the time is different for every submission to truly generate a unique number for each submission.
Did we answer your question?
Please let us know by voting below. All we ask is if you downvote, please let us know how the content can be improved in the comments!
Comments
0 commentsPlease sign in to leave a comment.