I have an object called a product. There is a field called product price.
Now I have created 100 products. I want in SUM (mathematical operation) all the fields of the product “product price” to be displayed in another object called “field for all products”.
In addition, if I create 101 products, and this field is the "price of the goods", the "total price of the goods" in the opportunity will automatically automatically display the date.
So, I have SUMMED for form fields. for example, there is field A and field B, multiplying field A by 3.14 and displaying the result in field B.
Here is the code.
function SumField() { var price = Xrm.Page.getAttribute("new_price"); var total_price = Xrm.Page.getAttribute("new_total_price"); if(price.getValue() != null) { var newValue = price.getValue() * 3.14; total_price.setValue(newValue);
source share