04-06-2016, 01:50 PM
I saw this on UC
The form has data, you want to accept input that will modify that data.
Add a form field for qty and one for total, and a button to 'do' the calculation.
In your jquery, when the button is clicked, get the contents of [data] and the contents of [qty], do your calculation, write the new value to the total field.
If you have multiple lines per invoice you might need to check that you have unique form field names.
Isn't it just regular javascript, wrapped in a click event?
??
The form has data, you want to accept input that will modify that data.
Add a form field for qty and one for total, and a button to 'do' the calculation.
In your jquery, when the button is clicked, get the contents of [data] and the contents of [qty], do your calculation, write the new value to the total field.
If you have multiple lines per invoice you might need to check that you have unique form field names.
Isn't it just regular javascript, wrapped in a click event?
??