My crm on prem switches back a form field named imc_totalweight to default value after saving the form.
How can i save it after i change its value. How do i save the changed value of var weight on saving the form.I have defined a var weight to do another calculation which works fine but the original field value switches back to previous value on saving the form.
the small glimpse of function which does the calculation is:
function imc_calculatefreight_onchange()
{
var weight= Xrm.Page.getAttribute("imc_totalweight").getValue(); //here the value taken is accurate after changing the field value but after saving the form imc_totalweight changes automatically.
if (calcFreight == true)
{
var weight = Xrm.Page.getAttribute("imc_totalweight").getValue();
//mycalculation;
if (error != "")
{
//mycalculation;
}
else if (freight != "")
{
//mycalculation;
}
}
}
I need to save the form field imc_totalweight on saving the form.
*This post is locked for comments