I was trying to figure out what the recalcuate button does in case of Order and Quote form. Got to know that it calculates the total based on the Products added to that record. Behind the scene this is the html code for the recalculate button
<li tabIndex=”-1″ title=”Recalculate” id=”_MBcrmFormSubmitCrmForm1truetruefalse”
action=”crmForm.SubmitCrmForm(1, true, true, false);”>
So basically it calls SubmitCrmForm function.
SubmitCrmForm triggers the save event even if there are no modifications made on the form.
SubmitCRMForm( Mode, Validate, ForceSubmit, closeWindow) // we could use this function but it is unsupported
Different Mode could be -1,2,7,58,59
or alternatively we could use the below function
Function: crmForm.SubmitCrmForm(59, true, true, false);
Excellent! Thank You!
Do you know of any way we can suppres the save event – specific example is when creating a new quote – a save event takes place behind the scenes. This is breaking my quote code as I am doing a count on the number of quotes per opportunity… People are creating quotes in error .. not clicking save – but the record is being saved nevertheless… Any ideas?