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.
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.
Hi,
Before the "Show HTML" action, add a "Custom code" action and use this code:
That will unset the city field from the data array before its used in publishing the field in the 2nd form.
Regards,
Max
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
This topic is locked and no more replies can be posted.