I am trying to do a simple multiplication function to calculate Mileage Cost when the user enters the Miles. Getting error "You must enter a number between 0.00 and 1,000,000.00. Here is the code:
function MileageCalc_onchange()
{
var Mileage = Xrm.Page.getAttribute("synact_miles").getValue;
var MileageCost = Xrm.Page.getAttribute("synact_mileagecost");
var Rate = .565
var Result = Mileage * Rate
if(Mileage != null)
{
MileageCost.setValue(Result);
}
}
Ken Compter