Support » Plugin: Rate my Post - WP Rating System » Allow change of negative rating decision before submit Feedback form

  • I set 2 in section “If post or page is rated X/5 stars or less, consider rating negative. X=”.

    When a user places 1 or 2 stars on a post or page, a feedback form appears. If the user does not write a feedback, the score will not be counted (if checked “Count negative ratings only if feedback is left” option).

    Idea! What if we add a Cancel button to the form to allow to user to change their mind BEFORE submitting the form?

    (After all, it’s easy to do by adding a button and a piece of JavaScript that will hide the Feedback form and display the Rating widget again. Please consider adding such a feature)

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • 1) Set $rmp_custom_strings[‘feedbackButtonCancel’] via Customize section of Settings.

    2) Add to Settings option “Allow to change negative rating before sending feedback form”.

    3) Add (./public/partials/rmp-star-rating-widget.php):

    <button type="button" class="btn btn-primary cancel" id="feedback-button-cancel" onclick="$('div.rmp-rate-view, div.rmp-feedback-view').toggle();$('#rmp-stars li').removeClass('selected')"><?php echo $rmp_custom_strings['feedbackButtonCancel']; ?></button>

    Of course, you will correct me by saying that it is better to add JS code to the file ./public/js/rate-my-post-public.js for JS

    OK? 😉

    Plugin Author Blaz K.

    (@blazk)

    HI @malferov,

    it’s a good idea, but I’m a bit short on time at the moment 🙂 I wrote it down and I’ll add it in one of the future updates 🙂

    Blaz

    Great idea!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allow change of negative rating decision before submit Feedback form’ is closed to new replies.