Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pauliusk

    (@pauliusk)

    Also would be nice to select which roles can be selected, right now I see roles ‘administrator’, ‘Editor’, ‘Author’ are hard coded in as not allowed. I think site admin should have an option on which roles are allowed.

    Thread Starter pauliusk

    (@pauliusk)

    Been testing some stuff and found out that the setting in the Settings > General ‘New User Default Role’ is also not used in the plugin, would be nice to see it implemented

    Did you try adding this code block after successful ajax response?

    $( 'div.wpcf7 > form' ).each( function() {
         var $form = $(this);
         $form.submit(function (event) {
             if (typeof window.FormData !== 'function') {
                 return;
             }
    
             wpcf7.submit($form);
             event.preventDefault();
         });
         $( '.wpcf7-submit', $form ).after( '<span class="ajax-loader"></span>' );
    });

    This is from plugins/contact-form-7/includes/js/scripts.js line 31~.
    Might need some more code, but this fixes the ajax submit of the form.

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