working good in crm 2011 but not in crm 2013 online
On opportunity Entity create New record form i show only:
1.Some attributes(all other fields/Section/Tabs are hide on form)
2.and an Html button like
function OnFormLoad(){
if(Xrm.Page.ui.getFormType() == 1 ) {
SetRequiredLevelToNone();
createHtmlButton("Save");
HideTabsAndSections()
}
else {
}
}
On click of Html button following function is triggered.
function showWholeForm() {
Xrm.Page.data.entity.save();
}
I want to show all the fields of form after save, means want to reload whole form.
As working in crm 2011
I think you should first disable the auto-save if you want consistency with CRM 2011.
and then
To fix this you can do:
The
save
method in CRM 2013 will not refresh the page anymore. The newrefresh
method should be used in this case, as follows:You could find the method documented here: http://msdn.microsoft.com/en-us/library/dn481607(v=crm.6).aspx