Page Refresh After Applying Coupon Code Removes Entered Custom Field Data

I have a client who insisted on moving the “Apply Coupon” area of the Pro-Forms to just above the “Submit” button. He and his designer say it make more sense. I actually agree with him there. The problem, which I’ve just discovered even though the forms have been used for months now, is that if you hit the Apply button when the coupon section of the form has been moved to the bottom, any previously entered custom registration field data is not carried forward on the page refresh. I haven’t changed any of the coupon area code, I just moved the entire section.

This is not an issue when the coupon area is at the top of the form. Does anyone have any idea what I can do to fix this? Thanks in advance.

Pat, how did you move that section? Did you create a custom form and just re-arrange the order of the fields, or did you do it by some other method?

Yes, I created a custom form template and moved the fields, that’s it. Just moved it. :wink:

Did you put any or all of the section beginning <!-- Coupon Code ( within the section beginning <!-- Checkout Now? I don’t think that will work.

However, if you put the coupon code section immediately above the checkout code section, then I’m wondering if you have other custom fields in the form. If so, maybe what’s happened is that some sort of field enumeration is getting out of the desired sequence.

It was moved directly above the checkout section and I did not edit anything: just moved it. But I think you might be on to something with the field enumeration. I’ll check that out on Monday and I’ll let you know what I find.

Have a nice weekend, and thanks, as always.