DMXzone Database Updater ASP Support Product Page

Answered

Clear form on Submit

Asked 13 Jan 2015 22:35:19
1
has this question
13 Jan 2015 22:35:19 Chris Turner posted:
After I insert my form variables using the Database updater, how can I clear the form fields? In the past when I've created an insert form using the Dreamweaver asp controls, the form would clear after I click submit.

Replies

Replied 14 Jan 2015 09:30:01
14 Jan 2015 09:30:01 Teodor Kuduschiev replied:
Hello Chris,
The deprecated DW server behaviors are clearing the form on submit, as they refresh the page. You can just call a javascript function that clears the form fields, when the data is successfully submitted (using the behaviors).
Replied 14 Jan 2015 16:56:49
14 Jan 2015 16:56:49 Chris Turner replied:
Thanks for the reply. Is the clear form JavaScript included in one of your behaviors, or do I need to incorporate my own?
Replied 14 Jan 2015 17:37:52
14 Jan 2015 17:37:52 Chris Turner replied:
I used the "Set Text Field" action In the Behavior Connector for "after form has been successfully submitted" and everything worked great.

Reply to this topic