Prevent Duplicant Post Submissions/ Double Clicks
-
I am having an issue where users are clicking “publish post” multiple times while button is loading and already clicked, creating duplicant posts.
Id like to prevent this. But i don’t think disabling button after clicking would be wise because typically a user will try to click publish button without filling in all forms, resulting in a “required” message.. So if i can disable after form is actually successfully submitted, that would be more ideal.
Here is my current code:
<div class=”large-12 columns”>
<?php wp_nonce_field(‘post_nonce’, ‘post_nonce_field’); ?>
<input type=”hidden” name=”submitted” id=”submitted” value=”true” />
<button class=”button expanded” type=”submit” name=”submit”><?php esc_html_e(“Publish Now”, ‘betube’) ?></button>
</div><!–Publish Button–>Thanks in advance!
The page I need help with: [log in to see the link]
- The topic ‘Prevent Duplicant Post Submissions/ Double Clicks’ is closed to new replies.