I need to assign a unique number to each submitted Form and display it to the forms user.
The idea is that after the form is submitted, Laserfiche forms should retrieve from a SQL the current form number, and update it (+1) so it will be ready for the following user and at the same time, display the assigned number to the user.
The problems I have:
1. I can't display the assigned number to the user with a Token on the "Thank you" message. The only way I have been able to do it is on another form on the following step of the process which is not comfortable for the users.
2. If two users submit forms at the same time, sometimes both of them will be assigned the same "unique" number because forms is slow to update it.
Any ideas or suggestions?