refresh fields after switch

vismay 26 Jul, 2017
Hello, I have an urgent question:

I have a form with 2 pages, where I add name an surname to a database.

Every time I need to add another person I say yes to a switch that redirect to the same page.

Now in this redirected page ( the same as before, because I need to add same fields) the fields are still full with the previous name and surname.

Is there a possibility to clean the field without loosing the {data:} information for the final submission?

Thanks a lot!!!!
vismay 26 Jul, 2017
Self reply:

I add a custom code after the SAVE DATA and before switch:

$this->data["surname"] = "";
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger