Duplicate Review Submissions
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Duplicate Review Submissions’ is closed to new replies.