Is there a way to make the "comments" field not mandatory for user reviews?

Front Support Plugins Support WP Reviews Plugin Is there a way to make the "comments" field not mandatory for user reviews?

This topic contains 5 replies, has 2 voices, and was last updated by  Hesham 4 years, 2 months ago.

  • Author
    Posts
  • #2205

    Matt Etheridge
    Participant

    Hi there,

    Just wondering if there is a way to make the “comments” field (the big text field) in the user review section *not* mandatory… I can see a big use case for people just wanting to use the stars / sliders to review a product, and not even bother with a comment. However, currently, if I do not enter a comment, it fails and says it is mandatory.

    I’m not sure whether this is a wordpress thing, or a WP reviews thing – but it would be nice if the comments field was not mandatory. Any ideas?

    Thanks!

    Matt.

  • #2206

    Hesham
    Keymaster

    Comment text area is mandatory in WordPress.

    Maybe you can use a filter to replace or remove the comment text area field.

  • #2209

    Matt Etheridge
    Participant

    Thanks Hesham – yeah I figured that after a while 🙂 Also, I thought a bit more about it, and without some form of comment it would be hard to determine whether the review is spam or not anyway, so it’s probably a good thing!

    Plugin is working great – just adding some useful plugins to make it all work a bit better. One plugin I found really useful was the “Comment Validation reloaded” plugin. This uses javascript to validate the comment field, instead of actually posting and getting a crap WordPress error page. I noted that with the “normal” wordpress comment validation, if I got any errors in the comments field (ie. missing name, email or comment), any values I selected on the sliders and the stars were lost which could be annoying for the user.

    By using the validation plugin the slider/star values are not lost if there are any validation errors. Works much better now.

    Thanks!

  • #2211

    Hesham
    Keymaster

    Exactly, I am getting a lot of spam, some of them also do not provide a rating at all. So, I’ve added an option to make the User Rating required, without it; the user will get a message to go back and choose a rating.

    P.S. The WP Reviews plugin was updated just now, you may want to upgrade it.

    Using such plugin could be really useful, I like the idea 🙂

  • #2214

    Matt Etheridge
    Participant

    All upgraded, and works fine, thanks! 🙂

  • #2215

    Hesham
    Keymaster

    Thanks for confirming 🙂

The forum ‘WP Reviews Plugin’ is closed to new topics and replies.