I'm creating a Custom Form to register people for a conference.
I have many questions with prices.
It would be very useful if I can calculate whole price like:
(answer_1 * 10) + (answer_2 * 20) + …
to send it via confirmation mail.
Is there any easy way to do this?
Any help or good ideas would be great :rolleyes:
Simplest way. Calculate the fields before the submission goes through. We’ve done this a few times like. Example.
So if it’s 10 X 10 people create a field to capture the 100 outcome.
Hope that helps.
Thanks Duncan,
jQuery Calculation plug-in works fine, but it uses id and names like: "qty_item_1", "price_item_1"
and I have names and id's from Matrix like: "q38425_q1", "q38425:q1".
Do I need to customize a form in some way?
I cannot understand what do this part of Your code
(maybe it could solve my problem):
$(document).ready(function(){
$("#qty_item_1").keyup(function () {
var value = $(this).val();
$("#q60989_q18").text(value); //amsterdam
$("#q60999_q18").text(value); //bath
(…)
Disable CSS and it might become a bit clearer to you. It clones the number on Keyup into a MySource form textarea. This is what is submitted through the form and into the system. Goodluck…