This topic is locked
[SOLVED]

 Trigger for UnitPrice*Quantity

3/27/2012 1:59:53 PM
PHPRunner General questions
M
mune72 author

I have a dropbox with items when an item is selected the field "UnitPrice" is filled with its price. So far so good.
Now there is a dropbox with the quantity and I'm looking for a way to calculate UnitPrice*Quantity when the combobox for quantity closes.
Thanks

M
mune72 author 3/27/2012



Check this article: http://xlinesoft.com/phprunner/docs/how_to_calculate_values_on_the_fly.htm


I did it using the example you pointed but it was necessary to change the event type bacause we are talking about a dropbox:

ctrlPrice.on('change', calc);

ctrlQuantity.on('change', calc);


Thanks.