form option addition problem

admin

Administrator
Staff member
i have a form that has 6 options (options called "car"):

options/values:
red = 3, blue = 4, black = 6

in the same form i have a extra section (options called "car2"):
tinted_windows = 2, no_tint = 0

I set the form up so that either red or blue or black can be selected,
AND that either tinted_windows or no_tint can be selected.
The max points this form can Post has to be 6. How can it be written so that
upon submission JS adds car and car2 together and if > 6 then Total_car=6 ,And if less
than six, Total_car= car+car2 ?

thanks
 
Back
Top