Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-06-07 13:58:47
- yeahdisk
- Member
- Registered: 2006-01-23
- Posts: 17
Passing information between different instances of zem_contact forms
(Dear Mods: I originally put this post in the zem_contact Author Support thread – but I figure that it is probably a broader question than fits there so I posted it here as well. Please feel free to delete one of the posts if it is in an offending section)
Hi – I’m trying to split my existing contact form into 3 parts – and I would like to pass a text-field variable from the first part into the other parts…
Essentially, I want the first part to collect the USER ID and 2 other pieces of info.
Something like
<txp:zem_contact from="defaultfromemail" subject="User Details" to="mycompanyemail" >
<txp:zem_contact_text label="USER ID" />
<txp:zem_contact_text break="" label="Idea" />
<txp:zem_contact_text break="" label="Timeframe" />
<txp:zem_contact_submit label="Submit" />
</txp:zem_contact>
Then, when the user clicks submit, they should be presented with the second form.
I would like the text entered into the USER ID field from the first page to be pre-populated into the form on the second page??
Something like
<txp:zem_contact from="defaultfromemail" subject="User Details" to="myothercompanyemail" >
<txp:zem_contact_text label="USER ID" /> // This should be prepopulated with the USER ID entered on the first page?
<txp:zem_contact_text break="" label="Company Name" />
<txp:zem_contact_text break="" label="Job Title" />
<txp:zem_contact_submit label="Submit" />
</txp:zem_contact>
Then, a third and final page with a separate form again – again prepopulated with the original USER ID in a text field??
Is that possible to pass variables between zem_contact using (i’m guessing) some txp:php tags??? And what would be the best way to go between forms? Would it be tp include the next zem_contact form in the ‘thanks’ form of the previous one???
I hope that makes sense – any help would really be appreciated!
(I am doing this because my existing form is a little bit long and unwieldly – If I can split it up it would really help me and my users).
Last edited by yeahdisk (2009-06-07 13:59:40)
Offline
Re: Passing information between different instances of zem_contact forms
Maybe you should look at a javascript/css solution to simulate the mutliple steps. Something like this wizard or this other wizard which use jQuery.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline