Forums

How do I save to session in V6 ?

Ron 21 May, 2020
Hello

I have been trying to save to session in chronoforms6 but I am not able to find it how ? I have to get data from one form to the other using sessions. Can i know how ?

Thanks

Ronn
healyhatman 21 May, 2020
Use the Data Builder 2 action. Then use {session:variable_name} to retrieve the value.

Joomla uses cookies for session so if the person has cookies blocked it won't work.
Ron 22 May, 2020
Hello healyhatman,

Thanks for your reply. I tried it but does not seem to work. Please see the attached screen shots. to set sessions I used Data Builder 2 as follows:


And to get I used as follows:


Please suggest if I have been making a mistake

Thanks again for your help

Ronn
healyhatman 23 May, 2020
No mate, in "value" you put the VALUE you want saved.
Ron 23 May, 2020
Thanks for the reply healyhatman,

This is a form, how will I know the value that a visitor will enter ? It confuses me ?

Please help

Romm
healyhatman 23 May, 2020
Come on man. The same way you get any form value. {data:fieldname}
Ron 23 May, 2020
Thanks healyhatman..

Some times I feel like a fool.

Thanks a lot

Ronn
Ron 23 May, 2020
I am sorry healyhatman,

But it does not work

Thanks for all the help

Ronn
Ron 23 May, 2020
Hello healyhatman,

I I use as follows do you think it should work : Data Builder 2

To set :
dropdown = Sessions
name = {data:}
value = {data:}

To get :

dropdown = Sessions
name : {var:}
Value = {var:}

Thanks for all the help

Ronn
Max_admin 24 May, 2020
Session > country_name > {data:country_name}

Assuming the field name is "country_name"

OR, use v7, it has a multi page enabled by default, which means that the data entered on the first page will be retained until the form is finished!

We now have v7 beta3
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ron 24 May, 2020

OR, use v7, it has a multi page enabled by default, which means that the data entered on the first page will be retained until the form is finished!


Hello Max,

Thanks for the reply.. and thanks for the suggestion on v7. I need that sessions work for multiple forms not just one form with multiple pages.

Session > country_name > {data:country_name}



Do I use this setting to set as well as get for Data Builder 2 ?
Thanks

Ronn
Max_admin 24 May, 2020
Answer
that was for setting the value in the session, then you call it with {session:country_name}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ron 24 May, 2020
Sorry Max.

It does not work.

Thanks for all the help

Ronn
Max_admin 25 May, 2020
try changing this to "variable" and call it with {var:country_name}, does it work ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
healyhatman 25 May, 2020
If it doesn't work then you're straight up not doing it properly. Please screenshot how you have your data builder action set up, and screenshot the part where you're trying to retrieve the value.
Ron 01 Jun, 2020

If it doesn't work then you're straight up not doing it properly. Please screenshot how you have your data builder action set up, and screenshot the part where you're trying to retrieve the value.


Hello healyhatman,

Thanks for the reply. I am attaching the screen shots.

Form1 where I set up session:


Form2 where I am trying to retrieve :


Thanks for the help

Ronn
healyhatman 01 Jun, 2020
You don't use the data builder action to RETRIEVE the session value, only to SET it. Use {session:name_goes_here} to get the value
Ron 01 Jun, 2020

You don't use the data builder action to RETRIEVE the session value, only to SET it. Use {session:name_goes_here} to get the value


( Use {session:name_goes_here} to get the value ) . Use this where in form field ? Custom code ? where ?

Please elaborate.

Thanks
Max_admin 01 Jun, 2020
any where you use a shortcode!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ron 01 Jun, 2020
Hello Max.

Can you please give an example. I tried it everywhere. Nothing seems to work

Session has never been so confusing to me Sorry

Ron
healyhatman 01 Jun, 2020
You use it wherever you want to use it! The place you want the session value to be retrieved? That's where you retrieve it!

You say you tried everywhere but I sincerely doubt it. Please screenshot where you are retrieving it in your second event. As in AFTER you used the data builder action in a previous step to set the value.
Max_admin 02 Jun, 2020
You can try it in v7, add a "Var Constructor" then set a variable in the session, then use HTML view to call that variable with {session:var_name}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ron 04 Jun, 2020

You use it wherever you want to use it! The place you want the session value to be retrieved? That's where you retrieve it!


Thanks for all the help. I want to use it in the countries dropdown list : where do I use it. ? like where do I enter this value ? {session:country_name}

Ronn
healyhatman 04 Jun, 2020
Does it store the selected value? Then you use it in selected value!
Ron 04 Jun, 2020
It worked.. I am sorry for wasting all your time. I had to reset my browser and it worked. Caching by browsers dose sometimes give problem. Thanks again

Best wishes from Ukraine.

Take care

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