Every document has its reference number that help users trace document upon requirement. This number is run by one rule that is defined by each organization (each office).This is called running number.
How to generate running number
Create singleline field as per below information. Set as read only.
Click Advanced settings.
Put (Auto-generated) for Default value (Server-side).
Click Save changes.
Click Edit form behavior.
Click Create new behavior.
Put the appropriate caption. Choose Before form save for behavior should occur. Click Action wizard.
Click Create an action.
Click Generate Running Number.
Set your ID and click OK.
Click Save changes.
Click View code. This is original code created by M5:
Add some code between line 3 to 5 as per below image. Check syntax, if no error then click Save and close.
Click Create now.
How it look in the form:
Click Save.
Ref No will auto generate once form saved.
コメント