Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

[Added] nuAfterSave()

Information about updates, news, Code Library
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

[Added] nuAfterSave()

Unread post 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);
}
Post Reply