close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

reset button does not reset the data in the form

Thread began 6/28/2009 12:34 pm by ADBO Consulting | Last modified 6/30/2009 2:54 pm by ADBO Consulting | 24299 views | 7 replies

Ray BorduinWebAssist

Probably the difference is that you have not used server side validation before in those other forms. Server Validation uses session variables to retain the previously entered values so that the user can start over from the form they had filled out when a particular field fails validation.

If you don't want it to retain values then you can set the value of the form elements to always be blank by default, or use javascript to reset the form to blank instead of using a standard form reset button. The standard form reset button is in fact working exacty as a standard form reset button should work in a browser.

Really once you get client validation working properly it will probably appear to work as you want since the client validation will catch all of th errors sever validation won't have to and the reset button will work as you expect. This is a result of the server validation running because you client validation is throwing an error.

Simply adding a form element to a working page will not break it. When you are making changes, test your changes as you make them. If things break, ctrl+z to undo and keep a working copy of the page. Having a working backup will help you analyze what you actually did to cause problems in the first place and then you will know exactly what you did to cause the error.

In this case the current error was actually caused when you removed the CAPTCHA. You failed to remove the code in the onSubmit event of the form validating that field:

WAValidateRQ(document.emailContact.Security_code,'- Please enter the text as it appears in the image above',document.emailContact.Security_code,0,false,'text');

That code is now causing errors and the client validation is not able to run at all as a result. This has nothing to do with the phone number field which is why you were pulling your hair out trying to find something wrong with the phone number field.


Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...