Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

[Added] nuAfterSave()

Information about updates, news, Code Library
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

[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