I'm trying to find a way to use a sequential numbering system to name forms that are submitted to a forms library in SP 2010 (also Infopath 2010)
The form naming convention will be OPxx where xx is a sequential number. 1 number higher than the previously submitted form.
I created a field LastUsedNumber and when the form loads there are 2 rules
LastUsedNumber = LastUsedNumber + 1
FormNumber = concat("OP",LastUsedNumber)
But of course each time the form loads LastUsedNumber is blank so FormNumber will always be OP1
How can I persist this value somehow in this browser enabled form or do I need to look at storing it elsewhere?