• Hi,

    The submit button is never disabled while the review form is submitting, and there is nothing to indicate the form is submitting, so users will click submit several times causing several duplicate reviews.

    Could you please disable the submit button while the form is being processed?

    Here is what I added to my own JS to handle it for now with my use case:

    
    jQuery('#review_order').submit(function() {
        var allRatingsChecked = true;
        jQuery('.ewd-urp-hidden.required').each(function(index, el) {
          if (jQuery(this).val() == "") {
            allRatingsChecked = false;
          }
        });
        if (allRatingsChecked) {
          // Disabled elements are not posted and Ultimate Reviews code checks for $_POST['Submit_Review'] 
          // before processing, so add hidden input with same name before disabling the submit button.
          jQuery('<input>').attr({
            type: 'hidden',
            name: 'Submit_Review'
          }).appendTo(this);
          jQuery('#ewd-urp-review-submit').attr('disabled', 'disabled');
        }
      });
    

    Thanks,
    Brian

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi bburgay,

    Could you send us the URL of your review form page?

    Thread Starter Brian P

    (@bburgay)

    Hi,

    The site I’m using it on isn’t live yet… still just on local. You should easily be able to reproduce the issue by clicking the submit button several times in a row.

    Best,
    Brian

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Brian,

    That’s no problem. We can definitely test and work on and investigate, etc. this on our end. But, whenever there’s an issue, we also like to make sure there isn’t something else unique going on on your site that isn’t happening on our end and that is contributing to an issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicate Review Submissions’ is closed to new replies.