Forums

Multiplayer form clear data

peppelaria 09 May, 2019
Hi Max. How can I clear form data in the first page of multiplayer form?
I'm using chronoform 6.1.2

Thanks for your help
healyhatman 09 May, 2019
Unless you have some way of determining which data is from the first page and which from other pages, you can't. Otherwise {session.clear:multipage.field1} {session.clear:multipage.field2} etc should work
Max_admin 12 May, 2019
How/when do you want to clear the data ?

Best regards
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
serguei_kp 08 Jan, 2021
Hello, please explain how to clear data.
I've got php custom code which gets values from url parameters into fields with this code:
$value = $this->data("open_days", 0);
if ($value) {
return $value;
}
if user do not terminate to fill the form and reload the form or open a form from another page, "open_days" data still remain in {data:}
I would like to clear the data if user open another form from another page or with other url parameters.
Array
(
    [Itemid] => 1558
    [option] => com_content
    [view] => article
    [id] => 233
    [type_of_request] => request
    [service_type] => excursion_group
    [unit_price] => 1
    [prepayment_percent] => 100
    [vehicle_type] => sedan
    [open_days] => 2,4,6
    [open_hours] => 12,15,18
    [fcba6eff3bcff11268aeb9d73ebac6b2] => 225ee166974dce84080f9c3d28038fa9
    [joomsef_lang] => ru
    [_ga] => GA1.2.2146140801.1610117828
    [_gid] => GA1.2.19685526.1610117828
    [_gat] => 1
Max_admin 09 Feb, 2021
the data is stored in the session, it's cleared when the last page is reached, but you may try this code:
$this->data("", [], true);
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.