You are viewing limited content. For full access, please sign in.

Question

Question

Generating Unique IDs for Your Form Entries

asked on December 20, 2021

We need to generate unique IDs and show that unique ID on Thank you page when someone submits that form. See below link, this is pretty easy on Cognito  Forms platform. Any help would be greatly appreciated.

https://www.cognitoforms.com/blog/79/generating-unique-ids-for-your-form-entries

0 0

Replies

replied on December 20, 2021

The Instance ID is unique.  In order to add it as a token on the thank you email, you'll need to add a hidden, single line field that has as it's default value the {/dataset/_instance_id} token.

You can then use insert that field variable into your follow up message (I named my test field InstanceNumber)

  

0 0
replied on December 20, 2021

Craig, thanks for this suggestion. I just tried it but the InstanceNumber token doesn't show any numbers. I just noticed, you said "Thank you email", we don't send any emails (its an anonymous form), we need this unique numbers to show up on "Thank you page".

 

0 0
replied on December 20, 2021

On your form you need to set the default value of the field to be the Instance ID.  

It should look like this on the form:

Then on the Message Start Event you should be able to add it to the follow up message on the On Event Completion tab.

0 0
replied on December 20, 2021

I did exactly what you said but still don't see anything. Our Laserfiche Forms Professional Version is 10.4.4.453. Do you think that could be an issues?

0 0
replied on December 20, 2021

No it's not your version.  Upon further testing, I guess that the instance ID isn't generated until the user submits the form so that's why we're not seeing a value.

You might be able to create a unique number using a SQL table and use that with a lookup on the form as a work around.

 

0 0
replied on December 20, 2021

Thanks for the SQL table suggestion. Do you know if there is any instructions on how to do that? 

0 0
replied on December 29, 2021

I would sugggest this post:

https://answers.laserfiche.com/questions/136333/I-wrote-a-book-about-Laserfiche-Forms-its-free#191614

 

Specfically, in the eBook (Chapter 4 - Business Process: Purchase Orders - Starting at page 83)

The eBook is a great resource to do some pretty neat things with Laserfiche Forms.

 

Good Luck!

0 0
replied on December 30, 2021

Troy, thanks for recommending this eBook. I quickly reviewed, looks like a great resource. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.