Title: Double Click Submit
Last modified: August 20, 2016

---

# Double Click Submit

 *  [Milo99](https://wordpress.org/support/users/milo99/)
 * (@milo99)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/double-click-submit/)
 * I am on a Mac and have tried this in 3 Browsers Firefox, Chrome, and Safari. 
   Everything seems to work fine but the first click on the submit button does nothing.
   After you click it a second time it will submit the post. Anyone else having 
   this problem?
    You don’t have to double click it really fast or anything you 
   just have to click it 2 times before it will submit.
 * [http://wordpress.org/extend/plugins/wp-user-frontend/](http://wordpress.org/extend/plugins/wp-user-frontend/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [CJwrite](https://wordpress.org/support/users/cjwrite/)
 * (@cjwrite)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/double-click-submit/#post-3408525)
 * I just noticed the same problem. It’s not a huge problem, but it’s annoying. 
   Did you find a solution?
 * I might go pokin’ around in the code a little…
 *  [Turismo in](https://wordpress.org/support/users/turismo-in/)
 * (@turismo-in)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/double-click-submit/#post-3408531)
 * Same problem.
 *  [WPChina](https://wordpress.org/support/users/wordpresschina/)
 * (@wordpresschina)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/double-click-submit/#post-3408533)
 * Same problem here too.
 *  [professor99](https://wordpress.org/support/users/professor99/)
 * (@professor99)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/double-click-submit/#post-3408539)
 * Don’t have this problem myself but Im using WordPress 3.4.2. Is this just a WordPress
   3.5.1 problem? Is it a problem with everybody that’s using WordPress 3.5.1?
 *  [rajun](https://wordpress.org/support/users/rajun/)
 * (@rajun)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/double-click-submit/#post-3408540)
 * Same problem here.
 *  [WPChina](https://wordpress.org/support/users/wordpresschina/)
 * (@wordpresschina)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/double-click-submit/#post-3408541)
 * I am on 3.5.1 yes. I did not test it on lower versions. maybe there is a small
   conflict caused by a form someplace. I will continue to investigate.
 *  [professor99](https://wordpress.org/support/users/professor99/)
 * (@professor99)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/double-click-submit/#post-3408542)
 * rajun are you using WordPress 3.5.1?
 *  [rajun](https://wordpress.org/support/users/rajun/)
 * (@rajun)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/double-click-submit/#post-3408547)
 * yes, i m using the latest wp version.
 *  [professor99](https://wordpress.org/support/users/professor99/)
 * (@professor99)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/double-click-submit/#post-3408548)
 * Had a look on WordPress 3.5.1 with my [development](http://wordpress.org/support/topic/frontend-updates-2rrr-fork)
   version which definitely doesn’t have this problem. My try again later with the
   official release as I need to test the upgrade from that to the new development
   release
 *  [professor99](https://wordpress.org/support/users/professor99/)
 * (@professor99)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/double-click-submit/#post-3408549)
 * Ok I can definitely confirm it is a problem with 3.5.1 with the official Frontend
   version 1.1. Its due to a bug in the checkSubmit function in wpuf.js. I rewrote
   this in the development version some time back due to similar bugs and this seems
   to solve the problem. Simply update wpuf.js with the updated version of checkSubmit
   below
 *     ```
       checkSubmit: function () {
                   var form = $(this);
   
                   //Save tinymce iframe to textarea
                   if (typeof(tinyMCE) != "undefined") {
                       tinyMCE.triggerSave();
                   }
   
                   $('#wpuf-info-msg').html('&nbsp;');
   
                   $('*',this).each(function() {
                       if( $(this).hasClass('wpuf-invalid') ) {
                           $(this).removeClass('wpuf-invalid');
                       }
                   });
   
                   var hasError = false;
   
                   $(this).find('.requiredField').each(function() {
                       var el = $(this);
   
                       if(jQuery.trim(el.val()) == '') {
                           //Highlights closest visible container.
                           //Still slight bug in tinyMCE editor when submitted when display tab is "HTML"
                           //In this case the "Visible" tab won't be highlighted but this is very insignificant.
                           el.closest(':visible').addClass('wpuf-invalid');
                           hasError = true;
                       } else if(el.hasClass('email')) {
                           var emailReg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
                           if(!emailReg.test($.trim(el.val()))) {
                               el.closest(':visible').addClass('wpuf-invalid');
                               hasError = true;
                           }
                       } else if(el.hasClass('cat')) {
                           if( el.val() == '-1' ) {
                               el.closest(':visible').addClass('wpuf-invalid');
                               hasError = true;
                           }
                       }
                   });
   
                   if( ! hasError ) {
                       $(this).find('input[type=submit]').attr({
                           'value': wpuf.postingMsg,
                           'disabled': true
                       });
   
                       return true;
                   }
   
                   $('#wpuf-info-msg').html('<div class="wpuf-error">Required field(s) empty.</div>');
       		$('#wpuf-info-msg').fadeTo(0,1);
   
                   return false;
               },
       ```
   

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Double Click Submit’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-frontend/assets/icon-256x256.gif?rev=3578622)
 * [User Frontend: AI Powered Frontend Posting, User Directory, Profile, Membership & User Registration](https://wordpress.org/plugins/wp-user-frontend/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-frontend/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-frontend/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-frontend/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-frontend/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-frontend/reviews/)

 * 10 replies
 * 6 participants
 * Last reply from: [professor99](https://wordpress.org/support/users/professor99/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/double-click-submit/#post-3408549)
 * Status: not resolved