Hello,
I am trying to run the following code:
function RevenueTotal
{
var sumRevenue=
Xrm.Page.getAttribute("new_estimatedservicestotal").getValue() +
Xrm.Page.getAttribute("new_estimatedlicensestotal").getValue() +
Xrm.Page.getAttribute("new_estimatedalftotal").getValue() +
Xrm.Page.getAttribute("new_cloudpublic").getValue() +
Xrm.Page.getAttribute("new_dedicatedsupport").getValue() +
Xrm.Page.getAttribute("new_solutionspecificsupport").getValue() +
Xrm.Page.getAttribute("new_thirdpartysupport").getValue() +
Xrm.Page.getAttribute("new_customsupport").getValue();
Xrm.Page.getAttribute("new_estimatedrevenue").setValue(sumRevenue);
}
Checked the syntax, published it a couple of times, still showing an error.
The code is pretty simple (Addition of few fields). Checked the name of the fields as well.
This code runs under onSave method of the form. There are 3 other scripts. They run fine.
Can someone tell me why the code wont run?
Thank you.
*This post is locked for comments
I have the same question (0)