Comments Form Field Validator

  • sylvia


    Quick question…I see when a field is not entered correctly in the comments section…it redirects your browser to a url/wp-comments-post.php page where it displays an error message such as:

    Error: please fill the required fields (name, email).

    Is there any way to avoid displaying this screen to the user? Such as possibly validating the fields live as they are entered and not allowing the user to proceed until all fields are validated? Or can someone suggest a better way of doing this so that I can avoid displaying the error page to the user when fields are not entered correctly??



    Kenneth John Odle


    Hmmm…haven’t had this problem yet.

    But, if you are handy with adding code via action hooks, it may be possible using this kind of code. Unfortunately I don’t have the time to really play around with this right now.

    Anyone else?



    I do like this suggestion. I remember commenting to myself once or twice when I first set up my website. I haven’t really given it much thought since.

    I’ll certainly play around with it and see what I can come up with. I agree, it would be better to have the user remain on the page. What happens when you click the back button? Does the information get erased? Does it reload the entire form?

Viewing 3 posts - 1 through 3 (of 3 total)

  • You must be logged in to reply to this topic.
Graphene Themes Forum