Not sure if this is possible but here goes
Have a form which collects information which gets sent via email/added to dbase
I'd like for the submit button to open a lightbox
Lightbox has a payment form from our payment gateway upon clicking the submit button.
Upon submit of the payment form ... success page
Possible?
Worth the angst?
I'd like this not to be a 3 step process
Nope not what's required. ;-)
The lightbox is not about an image.
The secure form, drawn from our payment gateway is launched in a lightbox type format rather than being taken off site and then returned back to it upon payment.
Hi yerg,
I think that it is possible but it may be complicated!! The main problem is that if you have the submit button open a lightbox then it won't submit the form so your email and db save won't happen.
What you can probably do is add script to the submit button that does three things in sequence:
a) Run the form validation to check all is OK
b) Submit the form using Ajax and get validation back (this should run your Email and DB Save)
then
c) open a lightbox showing the payment gateway form (see the FAQ on adding a Print button for one way to do this).
A simpler solution would be to submit the form conventionally then show a Thank You page with a script that automatically opens the lightbox. The user experience would be similar and it would be simpler to set up.
Bob
Thanks Bob
Makes sense.
May do a couple of things having cogitated on your suggestions
Now to test the concept
Thanks for the clarity