Page 1 of 1

[Added] nuAfterSave()

Posted: Sat Mar 20, 2021 6:05 pm
by admin
If the function nuAfterSave() exists, it will be run after the form is saved. Declare it in a form's Custom Code.

Example:

Show a message for 1 second after saving the form and then return to the previous screen.

Code: Select all

function afterMessage() {
   nuOpenPreviousBreadcrumb();
}

function nuAfterSave() {
  nuMessage(['Record has been saved successfully','You are redirected to the previous screen.'], 1000, afterMessage);
}