In CRM 2011, you could save an entity record using javascript.
There are 3 types of save possible using javascript in CRM 2011.
1. Equivalent to 'SAVE' button found on the entity form
Xrm.Page.data.entity.save();
2. Equivalent to 'SAVE AND NEW' button found on the entity form
Xrm.Page.data.entity.save('saveandnew');
3. Equivalent to 'SAVE AND CLOSE' button found on the entity form
Xrm.Page.data.entity.save('saveandclose');
i tried this in my form but i get this error 3 times and after i chech in database and the value saved :
ReplyDeletefield : crmForm
evento:onsave
error: Object doesn't support this property or method
can you help please
try this one
ReplyDeletecrmForm.Save();
I bielive crmForm.Save() is deprecated in crm 2011 since UR18
ReplyDeleteHi Please try this code
ReplyDelete//Save Form changes Using JS
Xrm.Page.data.entity.save();