How to style the HTML5 form validation messages?

Frontpage 2002, Form validation problems

  • I have created a web registration form with validation on several fields. I have a confirmation page if all is correct. I did not create a page for missing data since frontpage creates a default page that displays the items that don't meet the validation. The problem is that page has a link back to my form but it returns the user to the page with all the previous data cleared. They have to enter all the data again. I can create a failure page but I can only list the fields that have validation and not display which one are wrong. One interesting and odd thing occurred, for some unknown reason I was getting individual popup validations for a short time then they disappeared.??? I don't know what I did to create or delete them. I am not a coder, just a fairly educated user. I would like to just have the default validation error page return the user to a form that still has data.

  • Answer:

    Hi I'm pretty sure that using Javascript history back button will fill your needs. Here is the HTML code for it: <a href="javascript: history.go(-1)">Back</a> Using this code you can create a link that will take user to previous viewed page without clearing form fields. You should of course enter this in code view. I think that you can even, instead inserting such button, write "Please use your browser back button and correct the form" - it may look unprofessional, but many pages use such "technique". Regarding pop-ups - you have to apply some form field validation rules on the form fields, then you will get javascript pop-ups informing about not filled fields. I think that they disappeared because you created custom "failure page" which replaces them. My suggestion - do a little test: create new page and insert simple form with one text field into it, apply some field validation (by right clicking and selecting appropriate option) and test, if the javascript validation pop-up will show (it should show). Next, create custom failure page and check if the pop-up will be shown. Additional links: Discussion about similar problem on microsoft.public.frontpage.client http://tinyurl.com/86nle Microsoft training, tutorials, tips and how-to's about Frontpage http://office.microsoft.com/en-us/FX010858021033.aspx

chieferman-ga at Google Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.