getSaveMode(), returns a value indicating how the save event was initiated by the user. The following table describes the supported values returned to detect different ways entity records may be saved by the user in CRM 2013.
|Save and Close||2|
|Assign (user or team owned entities)||47|
|Save as Completed (Activities)||58|
|Save and New||59|
getFormType(): Method to get the form context for the record. The following table lists the form types that correspond to the return value.
Xrm.Page.ui.getFormType() = 1 even for Quick Create form, Is this a bug or desired behaviour? I was expecting 5..