Defined Autonumber as Whole Number (Integer), default to 100.
In the Submit button, the action rules are set like this..
1. Data connection to the sharepoint list that has Autonumber field. Selected Autonumber from data elements from that connection.
2. condition Autonumber>=100
AutoNumber = max(Auto_x0020_Number) + 1
3. submit data connection to the list. I have a filename variable in the submit data connection as concat("filename-", Autonumber). The list is submitted with this file name.
Before submit button is clicked, I see the values in the form for the fields, Auto Number as 100, file name as "Filename-100".
Once the submit is clicked, I am seeing the Values as Auto Number as NaN, file name as "Filename-NaN". That's where I am getting this error.
| The form cannot be submitted because it contains validation errors. Errors are marked with either a red asterisk (required fields) or a red, dashed border (invalid values). Field or group: my:AutoNumberError: Only integers allowed |
| Click OK to resume filling out the form. You may want to check your form data for errors. |