get form type using jaascript Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/category/get-form-type-using-jaascript/ Microsoft Dynamics CRM . Microsoft Power Platform Wed, 10 Jun 2015 13:49:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/cropped-Microsoftdynamics365-blogs.png?fit=32%2C32 get form type using jaascript Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/category/get-form-type-using-jaascript/ 32 32 176351444 Get Form Type And Save Modes using JavaScript in mscrm 2011 , mscrm 2013 , mscrm 2015 http://microsoftdynamics.in/2015/06/10/get-form-type-and-save-modes-using-javascript-in-mscrm-2011-mscrm-2013-mscrm-2015/ Wed, 10 Jun 2015 13:49:00 +0000 http://microsoftdynamics.in/2015/06/10/get-form-type-and-save-modes-using-javascript-in-mscrm-2011-mscrm-2013-mscrm-2015/ getSaveMode() : Its Return a value telling what was the save event of ms crm entity record ( like is it due to deactivation of form , manual save or save and close etc) below is the full list of events . // CodeexecObj.getEventArgs().getSaveMode(); Event Mode Value Save 1 Save and Close 2 Deactivate 5...

The post Get Form Type And Save Modes using JavaScript in mscrm 2011 , mscrm 2013 , mscrm 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
getSaveMode() : Its Return a value telling what was the save event of ms crm entity record ( like is it due to deactivation of form , manual save or save and close etc) below is the full list of events .

// Code
execObj.getEventArgs().getSaveMode();

Event Mode Value
Save 1
Save and Close 2
Deactivate 5
Reactivate 6
Send (Email) 7
Disqualify (Lead) 15
Qualify (Lead) 16
Assign (user or team owned entities) 47
Save as Completed (Activities) 58
Save and New 59
AutoSave 70

getFormType() :  Its Return a value Telling about form type of ms crm entity record ( Update , or create etc) , below is the full list of events.


// code
Xrm.Page.ui.getFormType();

Form Type Value
Undefined 0
Create 1
Update 2
Read Only 3
Disabled 4
Quick Create 5
Bulk Edit 6
Read Optimized 11

Its very usefull when you want to restrict or allow any particular event in ms crm using javascript  .


SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Get Form Type And Save Modes using JavaScript in mscrm 2011 , mscrm 2013 , mscrm 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
2796