Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


When using the fieldsOnSave or onSave commands, you can choose to either display a message or to create a new record once the save has completed. The code will only be called after a record has been saved. Any code defined within fieldsOnDefault, getDefaultValueOf, fieldsOnPresave, or onPresave is executed before the code is run.

The fieldsOnSave or onSave commands include the following:

  • window.location = "melt://showAlert:message to display". Displays a message prompting users to select OK to close, for example, a window.
  • window.location = "melt://createNew:MODULEID". Creates a new record in the module ID specified. If required, then you can use this command in conjunction with onCancel to prevent users from cancelling record creation.


For more information, see "The onCancel Function in JavaScript Code".

  • No labels