Save to session in Chronoforms8

How to save form data to session in ChronoForms 8.

Overview

ChronoForms 8 does not have a built-in "Save to session" action like version 6.
Use a PHP action in your form to set and get session variables with the provided ChronoSession class methods.

Answered
ChronoForms v8
ma mart1jn 24 Feb, 2024
In Chronoforms8, is it possible to save to session after submit (similar to "Save to session" in CF6)? Then, when the form is reloaded, automatically fill the fields from the session data if it is present.
Max_admin Max_admin 16 Mar, 2024
Answer
use this PHP code inside a PHP action for now:

ChronoSession::set("var_name", "value");

and to get that back:

ChronoSession::get("var_name", "default_value");
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.