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.
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
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.
admin,
For the URL, can it be either the SEF Url or does it have to be the Non-Sef URL?
Hi toad,
Try the SEF URL, if that doesn't work switch back to the non-SEF URL.
Bob
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.
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
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.
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]
I've created a ReDirect User action in the mini-form and data still does not get transferred to the larger form.
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]
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
Is there a tutorial where I can understand how to do this?
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.
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]
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.