Dana Cobb,
But then I had another thought, since you have the field with the promotional code, why don't you use that for your conditional on the credit card field? When the promo code is "100p", hide the credit card field.
Unfortunately not. I am using AJAX to query a database to validate and apply the promocode. I do not have a fixed set of promo codes. Plus, if I use conditional logic to hide the credit card info, it will no longer be tested for the required validation, so I don't want to step to far outside the existing infrastructure.
My backup plan (and it is an undesired hack) is to create a hidden field that can be updated dynamically by javascript when the total is zero, and hide the credit card fields when the condition is met on the hidden (and redundant) field.
Posted 12 years ago on Tuesday September 11, 2012 |
Permalink