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.
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.