Forums

Reset multipage form after submit

mari4anna87433 15 Mar, 2024
I need to reset all the form fields once I submit. Currently, if I return to page 1 of the form I find the fields pre-filled with the data filled in initially.
rbock 16 Mar, 2024
try: $this->data = array();
mari4anna87433 16 Mar, 2024
I tried, setting this to the load of each page, it works but then when the user submits and returns to the home page and starts the form again, once he completes it for the second time, the data that is sent via email are those of the first compilation.
Max_admin 16 Mar, 2024
The data in the session should be reset after the last form page is processed, do you complete the form till the last page ?

if you do and the issue persists then please create a test form with the issue (2 or 3 pages) so that I can test it, you may attach the form here
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.