Hi,
I created a form for people to get a register number looks like: ABC001, ABC002.... each time, when they use a form to record something, they will get a new auto increment register number. What I have done is:
1. Set variable in Screen Onvisible: Set(LastRef,Last('Sharepoint List').Reference)
2. In the form, in the reference Datacard, Default: If(Form3.Mode=FormMode.New,"ABC"&(Last(Split(LastRef,"ABC")).Value*1)+1,Parent.Default)
Then, every time when people create a new form, the reference is the last number+1.
But I have a concern, if someone created a new form, then he left it and go to do something else, so he will get a form with a reference number say: ABC017. At the mean time, another person created another new form, the form will also provide ABC017 as the last number in the sharepoint list is ABC016. So if both at the end, created the recode, I will have 2 X ABC017 in the sharepoint list.
How can I solve this problem? Because only a unique number should be issued to one person.
Thanks.