Hey there. I've been struggling with this for the last few hours, hopefully someone knows the answer. I've followed Kevin's Fancy Box modal tutorial, and I've got it working beautifully.
What I'd like to do however, is have the first page of a multi-page form inside the modal window, but on submit, I'd like the modal window to close, and I'd like to parent window to load a second page, passing the submitted variables from the modal form.
For example, the user clicks a link to select a specific product. The modal window is popped on the click, and prompts them for their zip code. When they hit submit, the modal window closes, and the parent window goes to the product configuration page, where the zip is passed to a hidden field.
I can see how the functionality could be done with a standard HTML form using onclick with the submit button. I've tried calling Fancy Box's close-window function in form_display.php (I think between lines 500 and 530, off the top of my head) but haven't had much luck.
I should add that right now, as I would expect because of my form 1 redirect settings, upon submitting the modal form, my 2nd page (the aforementioned product config page) loads inside the modal, rather than the parent with the modal closed.
Does anyone have any suggestions? Thanks.
Thanks,
Brad Kelly