Lightbox as On Submit action

perarg 23 Mar, 2012
Hello,
(I am using ChronoForms 4.0 RC3.21 and Joomla v2.5)

i have two forms. One form can pass variables to other form, through Redirect User action. So far so good.
My tries is to make the second form with the variables loaded from the first one to be loaded in lightbox.

I read the GreyHead's tutorial http://greyhead.net/chronoforms/show-a-form-in-a-light-box but he uses a link to make the form pops up in lightbox.

I need this to be happened when a user clicks submit button...

Has anyone any idea how to achieve that ?
GreyHead 23 Mar, 2012
Hi Perarg,

Make the submit button into a link?? Add a button item and wrap a link round it.

Bob
perarg 23 Mar, 2012
Hmm.. I feel so stupid. I 'll try it, but i am afraid of not working as submit button but only as link... It should work as submit button in order to pass the variables to other form... shouldn't it ?

Update: I tried, make a <a href> wrap to the submit button and it works only as a link. No submit functionality. No validation check, no pass for variables...
GreyHead 24 Mar, 2012
Hi Perarg,

Sorry that one didn't work :-( There isn't an obvious answer to this. Maybe using the same idea of a button link but using JavaScript to edit the URL to add the form values will work.

I'm pretty certain that submitting the form normally can't open a modal window - there may be some way to set the form target but I can't find a solution right now.

Bob
This topic is locked and no more replies can be posted.