Forums

Have Data in One Form Forward to Another Form

toad 17 Feb, 2014
I have a partial form with a 'Name' and 'Email Address' field with a 'Next' button inside a module (Chronoform module). This data needs to be passed to another web page with the full form and have the 'Name' and 'Email Address' fields already filled in.

Is there an online tutorial that can assist with this type of setup? Data does not need to be recorded in the database, if that matters.

Thank you.
GreyHead 17 Feb, 2014
Hi toad,

If this is another ChronoForm then you can use the Data to Session action in the On Submit event of the first form and a Session to Data action in the On Load event of the second one. If the input names are the same then the data will be published for you.

Bob
Max_admin 18 Feb, 2014
Hi,

Another way to do it, you can simply set the "action url" of the module mini form to the url of the main form, the fields names in the mini form should match the ones in the main form, that should do what you need!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
toad 18 Feb, 2014
admin,
For the URL, can it be either the SEF Url or does it have to be the Non-Sef URL?
GreyHead 18 Feb, 2014
Hi toad,

Try the SEF URL, if that doesn't work switch back to the non-SEF URL.

Bob
toad 21 Feb, 2014
Using Chronoforms 4, I have set a Redirect URL action (I'm using the Easy Form Wizard) to redirect to the form, which is successful, but the data does not transfer. I've event applied a Data to Session action in the 'On Submit' to the mini form and a 'Session to Data' to the On Load of the full form. Both forms 'name' fields are the same.

After testing, the debugger gives me the following message:
Data Array:

Array
(
    [chronoform] => freeevaluation
    [event] => submit
    [option] => com_content
    [view] => article
    [id] => 22
    [Itemid] => 101
    [name] => name
    [email] => email@email.co
    [input_submit_4] => NEXT STEP
    [94c32bc9fa1789567ffdf2d35b41a332] => 1
)

Validation Errors:

Array
(
)

Debug Data

    redirect_user
        redirect_user_target_url: free-evaluation-form.html
        Redirect URL (click to continue):
        free-evaluation-form.html	


Not sure how to debug this.
Max_admin 21 Feb, 2014

Both forms 'name' fields are the same.

forms names should never be the same, and for the session storage to work for 2 forms, the session key should be the same.
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
toad 21 Feb, 2014
This is the small form:
<div class="form-inline">
<h3>START YOUR <strong>FREE</strong> CASE EVALUATION</h3>
<div class="ccms_form_element cfdiv_text form-group" id="name1_container_div" style=""><label style="display: none">Your Name</label><input placeholder="Your Name" maxlength="150" size="30" class="form-control" title="" type="text" value="" name="name" />
<div class="clear"></div><div id="error-message-name"></div></div><div class="ccms_form_element cfdiv_text form-group" id="email1_container_div" style=""><label style="display: none">Email Address</label><input placeholder="Email Address" maxlength="150" size="30" class="form-control validate['email']" title="" type="text" value="" name="email" />
<div class="clear"></div><div id="error-message-email"></div></div><div class="ccms_form_element cfdiv_submit form-group" id="input_submit_41_container_div" style="text-align:right"><input name="input_submit_4" class="btn btn-primary btn-lg" value="NEXT STEP" type="submit" />
<div class="clear"></div><div id="error-message-input_submit_4"></div></div><div class="ccms_form_element cfdiv_empty" id="empty_container_div" style=""><div class="clear"></div><div id="error-message-empty"></div></div>
</div>


I have a 'Data to Session' Under Check Captcha (which is disabled) > On Success > Data to Session

This is the form the data should pass to:
<div class="ccms_form_element cfdiv_header" id="id1_container_div" style=""><h3>START YOUR <strong>FREE</strong> CASE EVALUATION</h3><div class="clear"></div></div><div class="ccms_form_element cfdiv_text label_over" id="name1_container_div" style=""><label>Your Name:</label><input maxlength="150" size="30" class="form-control validate['required']" title="" type="text" value="" name="name" />
<div class="clear"></div><div id="error-message-name"></div></div><div class="ccms_form_element cfdiv_text label_over" id="phone1_container_div" style=""><label>Phone:</label><input maxlength="150" size="30" class="form-control validate['required','phone']" title="" type="text" value="" name="phone" />
<div class="clear"></div><div id="error-message-phone"></div></div><div class="ccms_form_element cfdiv_text label_over" id="email1_container_div" style=""><label>Email Address:</label><input maxlength="150" size="30" class="form-control validate['required','email']" title="" type="text" value="" name="email" />
<div class="clear"></div><div id="error-message-email"></div></div><div class="ccms_form_element cfdiv_textarea label_over" id="details1_container_div" style=""><label>Details About Your Case:</label><textarea cols="45" rows="12" class="form-control validate['required']" title="" name="details"></textarea>
<div class="clear"></div><div id="error-message-details"></div></div><div class="ccms_form_element cfdiv_text label_over" id="chrono_verification1_container_div" style=""><label>Enter Code:</label><input maxlength="5" size="5" class="chrono_captcha_input form-control" title="" type="text" value="" name="chrono_verification" />
{chronocaptcha_img}<div class="clear"></div><div id="error-message-chrono_verification"></div></div><div class="ccms_form_element cfdiv_submit" id="input_submit_41_container_div" style="text-align:right"><input name="input_submit_4" class="btn btn-primary btn-lg" value="SUBMIT" type="submit" />
<div class="clear"></div><div id="error-message-input_submit_4"></div></div><div class="ccms_form_element cfdiv_empty" id="empty_container_div" style=""><div class="clear"></div><div id="error-message-empty"></div></div>


I have a 'Session to Data' Under On Load > Session To Data (is the first in the On Load box)

I'm not sure where I'm going wrong here and how I'm to make a 'session key the same'.

Thank you.
GreyHead 23 Feb, 2014
Hi toad,

If you want to use the ReDirect User action to transfer the User with data then you have to use a ReDirect URL action to add the data to the URL. As far as I can see there is no data in your URL.

Bob
Max_admin 24 Feb, 2014
Hi,

Also regarding your setup, if the check captcha is disabled then its events will not run, just add the "data to session" after it.

The session key name is under both session actions settings!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
toad 24 Feb, 2014
I have applied a ReDirect URL action above the Redirect User action in the Events > On Submit and data is still not being forwarded.

I removed the ReDirect User action and tried again. What happens this time is the URL changes to http://domainname/subfolder/dfl/?chronoform=freeevaluation&event=submit and the full form does not display.

I've also tried using in the Redirect URL both the SEF and nonSEF addresses, to no avail.

Here are screenshots:
[attachment=0]Mini-form.JPG[/attachment]
[attachment=1]Redirect URL Target.JPG[/attachment]
[attachment=2]Mini-form filled out.JPG[/attachment]
[attachment=3]End Result.JPG[/attachment]
toad 25 Feb, 2014
I've created a ReDirect User action in the mini-form and data still does not get transferred to the larger form.
toad 28 Feb, 2014
I guess I don't understand then. I'm still not able to get my data to forward to the other form and I cannot seem to find a tutorial that covers what I would like to do.

Form 1:
[attachment=0]form1.JPG[/attachment]

Data to Session:
[attachment=1]dtos.JPG[/attachment]

Redirect URL:
[attachment=4]redirectURL.JPG[/attachment]

Form 2:
[attachment=2]form2.JPG[/attachment]

Session to Data:
[attachment=3]stod.JPG[/attachment]
GreyHead 01 Mar, 2014
Hi toad,

There were a lot of images in your post but they seem to have disappeared after I deleted a spam post :-( That may be a forum bug.

I think that the problem now is the one Max pointed out - you need to use a session key to in the Session to Data and Data to Session actions to transfer data between forms (it's not needed for different pages in the same form.)

Bob
toad 01 Mar, 2014
Is there a tutorial where I can understand how to do this?
Max_admin 02 Mar, 2014
Just add a string to the "session key" field in the session actions in both forms, the same string, for example "myform"

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
toad 03 Mar, 2014
Here is what was done and still no results:

Data to Sessions on first form:
[attachment=0]Data to Sessions.JPG[/attachment]

First Form filled with data:
[attachment=2]filledform.JPG[/attachment]

Sessions to Data on second form:
[attachment=1]Session to Data.JPG[/attachment]

Result with URL: domainname/folder/folder/?chronoform=freeevaluation&event=submit
[attachment=3]results.JPG[/attachment]

The form that should display with the data: domainname/folder/folder/index.php?option=com_chronoforms&chronoform=freeevaluationfullform
[attachment=4]Filledformb.JPG[/attachment]
toad 03 Mar, 2014
I think I found the problem: it seems that every time I switch between Form Wizards, some actions are literally removed which I noticed the Redirect URL was missing in the first form. Very confusing.

Will there be in the future tutorials (video/web page) of how to make forms like this for newbies? It would really help because posting on forums is rather time consuming.
GreyHead 26 Mar, 2014
HI toad,

A bit late but please see this FAQ - you can't relaibly switch back from the Normal Wizard to the Easy Wizard.

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