- October 25, 2018 at 4:46 pm #27480
I have something like this example in my form, which also has a calculator to output the total price according to a quantity chosen by customer.
<select name=”ball” onChange=”calculatePrice()” id=”ballType”>
<option value=”3.00″>Blue ball</option>
<option value=”2.50″>Red Ball</option>
<option value=”5.00″>Rainbow Ball</option>
<option value=”1.50″>Green Ball</option>
The email sent by the form returns values to me, but instead, I want to get the product description the customer has chosen. So, I want the selected option to arrive in the email message, instead of the value. Is this possible?
Thanks to anyone who can helpOctober 26, 2018 at 5:21 pm #27503
AllySupport StaffOctober 26, 2018 at 6:19 pm #27506
This kind of solution you suggest occurred to me, but I didn’t know how to implement it.
It was a fluke getting the calculator to work in the first place. Was afraid to mess with it, but will try this anyway.
Didn’t realise only the value is sent …
Read somewhere … that if no value is present, the selected text is taken as the value? Is that true?
bbOctober 27, 2018 at 12:47 am #27511
Had to do a similar workaround with the quantity values. Total price = selected product x selected quantity, but individual product price went down as quantity went up. It would have been nice to do the calculation with percentages but that was beyond my capabilities, so a much more ‘inelegant’ workaround was called for.
I’ll be keeping this one for future reference.
You must be logged in to reply to this topic.