dual forms connected

thrive 13 Oct, 2008
Firs off, let me say I know this is maybe not the best way to do what I am trying to accomplish, however, this is what the guy who signs my checks is making me do, so.

I want to create 2 separate forms. After completion of the first form, an email with the information is sent to [email]email@address.com[/email], and the form redirects to the second form.

All that is no problem and is running now.

What I need help with is how to pass that info to hidden fields in the second form, that will print second he second email.

I have tried just putting in the url of the second form into the "submit url" but I just get errors.

anyone have the answer?
Max_admin 13 Oct, 2008
Hi thrive,

I can't understand this :

that will print second he second email.



also, what kind of errors you get when you put the 2nd form url in the first one submit URL ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 13 Oct, 2008
Hi thrive,

I'd do it with one ChronoForms form but using two different sets of form code controlled by a little PHP logic. That way it looks like two forms to the user (and anyone else) but you keep all the data in the $_POST array and can use it to repopulate the 'second' form.

Bob
thrive 14 Oct, 2008
wow! first off thank you for a great add-in!
second, thank you for great support!

Let me clarify AND speak coherently:

the end result needs to be:
1. a "short" form, so as to net seem daunting to the end user filling it out. This form will need to send an email to us after it has been filled out.
2. the short form will also need to send the information to another form that is more complete and requires more information. The longer form needs to be "paired" with the info from the first "short" form.
3. the second form will then send the information from the first "short" form AND the second longer form, together.

This IS redundant, but so is the guy who wants it. :]

GreyHead - I think it needs to be two forms so that we can still capture the information even if the end user bails out on the second "more daunting" request for information. Is this correct or could the first part be sent or stored on click to the second page?
GreyHead 14 Oct, 2008
Hi thrive,

You can do it with one or two forms. I'd still stick with one . . . but there's a choice there. if you think that there is a chance of bailout then save the data in the autogenerated tab before you go on to the second form and add the ChronoForms generated uid to the second form in a hidden field so that you can update the record wen/if the second form is completed. If you think that there might be a significant delay between the two then put the uid in a cookie so that if they come back you redirect them straight to the longer form.

Bob
thrive 21 Oct, 2008
So what do I need to do to actually do it?

Sorry for the stupid question.
This topic is locked and no more replies can be posted.