I think you have the right idea in terms of what I'm trying to accomplish. So, effectively, I'd like to have one hidden via CSS field, a product field on the monthly subscription form and a donation field on the one-time donation form, containing the amount that gets submitted to PayPal. Those fields would be required.
On each of those forms, there would a set radio buttons containing amounts, $20, $10, other. When you click $20, it sets the required hidden via CSS field, to 20, when you click $10, it sets it to $10, and when you click Other, it displays the hidden field and changes the focus to it. The hiding/showing when other is clicked is taken care of the conditional logic, but I'm not quite sure how to set the value of the hidden field when the amounts are changed. It shouldn't be all that complicated, but I haven't found a good example yet. I looked for a hook that would allow me to override gf_apply_rules, but I don't see an easy way to do that either.
Posted 8 years ago on Friday June 3, 2011 | Permalink