Forums

Send value to another page

marcozeus 21 Jul, 2017
Hello,
I'm sorry if my question is stupid but I didn't find a solution.
I have a form with only an email field and a submit button. I would like to pass the email value to another page with the complete V6 form (name, lastname, email, etc.) of course with the email field pre-compiled.
I tried with Redirect function but I don't know how to pass the value.
Can you help me, please?
Thank you
GreyHead 21 Jul, 2017
Hi marcozeus,

Sorry, I don't understand what you need to do here? Would a two-page form work OK?

Bob
marcozeus 21 Jul, 2017
Sorry Bob,
I try to be more clear.
In a Joomla site I have in home page a simple chronoforms module with only one field (email) and a submit button.
What I would like to have : when you enter your email and click submit you'll be redirect to contact page with a complete chronoforms (name, lastname, etc.) but the field 'email' is already filled with the email insert in home page.
I'm using V6.
GreyHead 21 Jul, 2017
Hi marcozeus,

Two ways to do that - though I don't know exactly how to do it in CFv6 . . .

a. You can save the email data to a session, redirect then re-load the data, or

b. You can add the email to URL and redirect to that.

I think that a. is probably simpler as it avoids any possible problems with having an email address in a URL.

Bob
Max_admin 21 Jul, 2017
Answer
1 Likes
Hi,

You can use a "redirect" action in the small form "submit" event, set the redirect url to the link of the big form, and set the redirect parameters as following:

big_form_email_field_name={data:small_form_email_field_name}


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
marcozeus 23 Jul, 2017
1 Likes
Great !
Thank you very much Max and Bob
:-)
This topic is locked and no more replies can be posted.