Post

1 follower Follow
0
Avatar

My ONTRApage form I'm using to update contacts keeps overwriting them!

Frank Hagan

I'm using an ONTRApage with a Smart Form block to let my employees who don't have a log in to ONTRAPORT update contact details. I want them to be able to put in the first name, email address, and then the appointment time we are storing in a text field. 

But it just over-writes the email address on the first contact we entered. It's like it's possessed or has a cookie or something. 

Answered

Please to leave a comment.

1 comment

0
Avatar

ONTRApages uses cookies to store data, so you can either clear the cookies for the page where you have form located, or add a "DELETE COOKIE" button on the page. Here's how to do that second option:

Add a Custom HTML block above the Smart Form block

Add this code to the Custom HTML block:

<center>
<input value="delete cookie" onclick="document.cookie = &quot;contact_id=; expires=Thu, 01 Jan 2000 00:00:00 GMT&quot;;" type="button">
</center>

Set your ONTRApage to return to itself by settting the Thank You page to it's own URL.

The process for adding the information will be to first click the "DELETE COOKIE" button, then fill out the form and submit it. 

Frank Hagan 0 votes
Comment actions Permalink