(Sorry if this has been covered in the past guys, the forum search isn't working for me!!)
I need 2 'simple' solutions.
First off, on the top of my form there's an option to check either 12%, 15% or 18% discount.
Then people can select a bunch of products, these amounts add up to a SUBTOTAL (so far so good),
and just below it SHOULD show the % of discount in $ based on the subtotal amount.
Now I can't figure out how to have it calculate + show either 12, 15 or 18% of the subtotal..??
I'm not even sure what the best way is to check the discount percentage on top and then have it show up on the bottom..
(hope I'm being clear)
Secondly, this should be easy.. I need to SUBTRACT the DISCOUNT $ from the SUBTOTAL to show up in the TOTAL field
on the complete bottom of my form. I've been attempting a script like: ((DISCOUNT) - (SUBTOTAL))
but it won't work...
My math skills are seriously ridiculous by the way :-(
Thanks so much in advance for any help, I'm pretty lost here, and the pressure is high to get this form out.... :-((
-Joe-
The trick to using the discount selected in a calculation is having the 3 check boxes all named the same and then setting the 'Export Value' for each check box to the decimal value for the discount being applied. For 12% use 0.12, for 15% use 0.15 and for 18% use 0.18. This is the value of the check box field. If no check box is selected the export value will be the character string "Off"
With that done, you can create a field to show the amount of the discount being given. Use a text field and set the format to a number and select the appropriate currency symbol. For the calculation, you an select the 'Value is the ___ of the following fields:' and select the field for the check box and the subtotal fields. This method of calculation will treat the string value of "Off" as zero.
Calculating the "TOTAL" will be more complicated, since the discount amount is specified as a positive number and there is no option for subtraction. But you can use the 'Simplified field notation' and enter the following code:
SUBTOTAL - DISCOUNT
George Kaiser