I have a client-side event that calculates an order total using the functRadioCalc function. It calculates an event cost, and then adds/subtracts whatever discounts a customer wants.
Now, my client wants to add a "deposit-only" checkbox field on the form that overrides the calculated order total.
>> If checked, they would only pay $200 >> If unchecked, it would calculate the order total and proceed
The new "checkbox field is called "DepositOnly". If checked, it would change the "ordertotal" field to $200; if false, it would recalculate the form and use the higher amount.
Here is my current ordertotal routine:
$(OrderTotal) = funcRadioCalc($(SelectedEvent_FieldID))-CalculateCheckBoxListValues($(AvailableDiscounts_FieldID), $(AvailableDiscounts_ValueFieldID))
Any ideas?
|