I have a simple calculation logic in javascript to calculate two float number field, and I got this error as below, it looks like getvalue method didn't get the value
My code is simple:
function calculateTotalHour(){ debugger; if(Xrm.Page.getAttribute("dev_timetravel").getValue!=null && Xrm.Page.getAttribute("dev_timeinspect").getValue!=null){ var timetravel = Xrm.Page.getAttribute("dev_timetravel").getValue + Xrm.Page.getAttribute("dev_timeinspect").getValue ; Xrm.Page.getAttribute("dev_hours").setValue(timetravel); } }