Forums

how to avoid use of one field from session

rkloots 11 May, 2012
Hi,
Whilst using two forms and importing sessiondata into second form, I need to avoid reuse of one field. In 1st form prospectlocation is registered and in 2nd form the deliverylocation, however the underlying tables both use "city" as fieldname, so the sessiondata overwrites deliverylocation.

Your help appreciated.
Max_admin 11 May, 2012
Hi,

Before the "Show HTML" action, add a "Custom code" action and use this code:


<?php
unset($form->data['city']);
?>


That will unset the city field from the data array before its used in publishing the field in the 2nd form.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.