I've just created a custom order form on the Microsoft Dynamics CRM Online.
Update Amount Field X Quantity Field should be = Total Amount Field value. My script should run on Quantity Field on Change event.
the code for your calculation will look something like this:
var amount = Xrm.Page.getAttribute("youramountfieldname").getValue(); var quantity = Xrm.Page.getAttribute("yourquantityfieldname").getValue(); var totalamount = amount * quantity; Xrm.Page.getAttribute("yourtotalamountfieldname").setValue(totalamount);
©2020 All rights reserved.