WordPress.org

Ready to get started?Download WordPress

Forums

If username/email leave blank + Error (7 posts)

  1. diabolus
    Member
    Posted 6 years ago #

    Hi.....

    Currently, when someone forgot to fill his name and/or email in the box form on the comment form, then he/she will be redirected to a page saying:

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

    i wanna know a way to make this more elegant to highlight the issue? i mean, when someone forgot to fill his name and/or email in the box form on the contact form, then he/she NOT will be redirected to a page, but still stay in the curent page/post, but he/she will recieve an error message prompting them to complete the form.

    please tell me

  2. moshu
    Member
    Posted 6 years ago #

    Seemingly there isn't a way, unless you modify core files, which we never advise.

  3. diabolus
    Member
    Posted 6 years ago #

    okay, i saw the example of what i want on the blog that using cform II plugin, you can test to leave a name and/or email in here, and you will receive message such as:

    Please fill in all the required fields.

    but, unfortunately, i don't know how to modify thw wp's core files, so please tell me

  4. moshu
    Member
    Posted 6 years ago #

    I never do that, so don't ask me. Sorry. Ask that blog owner where you saw what you want.

  5. diabolus
    Member
    Posted 6 years ago #

    moshu,

    i got i nice plugin to do that, Comment Fields JS Validation, i will try it, and i'ill post the report on here too, so please stay tune on here, okay :))

  6. rarareddog
    Member
    Posted 6 years ago #

    One of the problems that people complain to me about this is that when a user doesn't add email address, etc as suggested above, Everthing that has been written disappears.

    One client I have said she spent an hour typing a response (must of been a long one...), forgot to put in the email address and lost everything.

    I too would like a better solution to this quite simple usability problem.

  7. SaudiWanderer
    Member
    Posted 6 years ago #

    Hello guys,

    Thank you for using my plugin.

    rarareddog:
    that will solve your problem :)
    http://swanderer.ws/wordpress-plugins/plugin-comment-fields-js-validation/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.