1
0
-1

I have a form that contains a drop down of products and I want to calculate the total using Ajax

total = unitPrice * quantity

How can I get the price of the selected product?

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Or if you want to visualize the price and not lose the information of the product id when saving the form, put another dropdown related to the same form of the products but with the value and label properties mapped to the price column and the grouping property to the id of the product

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Configure the select box "value" to return "unitPrice".

        Use Calculation Field and point to the select box "id" and text field for "quantity" to get the "total".

        1. aimi

          Hi Walter,  how to Configure the select box "value" to return "unitPrice"? u means use hash variable?

        CommentAdd your comment...