formData.pageNo
(FintechOS Studio 20.1.1 and later)
Indicates the last step in the form where data was saved.
Return Value
Returns a number indicating the last step in the form where the data was saved. The steps are counted starting from 0, so formData.pageNo will return 0 for the first step, 1 for the second step, etc.
Examples
In this example, we add a reminder in the form's afterGenerate.js script to commit any unsaved changes from the form's previous steps and mention the step when the form was last saved.
For details on how to check if a form has unsaved changes, see formData.hasChanges.
Copy
if (formData.hasChanges) {
ebs.showMessage('You have unsaved changes. Click Save and Reload to commit your updates. Your changes were last commited at step ' + JSON.stringify(formData.pageNo + 1));
};