Tagged: x
-
AuthorPosts
-
November 25, 2016 at 7:26 pm #1271109
thecashbagParticipantI have a login form inside a ConvertPlug modal.
The login form has AJAX error messages that appear if the user inputs the wrong password, username, etc.
But when a user clicks on the submit button it closes the modal and refreshes the page – so users never get to see the error messages.
This is happening because ConvertPlug is taking over the submit event, thus making the AJAX mode broken.
Do you know how I can fix that? Maybe stop the ConvertPlug submit event?
See a live example of the login modal here: http://wordpress-15765-63246-180943.cloudwaysapps.com/2016/11/25/test-post-for-profilepress/
November 25, 2016 at 8:45 pm #1271193
RadModeratorHi there,
Thanks for writing in.
Hmm, how about a blank ConvertPlug template and add your custom content? ConvertPlug isn’t designed for that, it will try to submit the form inside it, no matter what fields you added. While with the blank template, it will expect that there is no form within it, and there you can add your login code.
Thanks!
November 25, 2016 at 10:29 pm #1271241
thecashbagParticipantHi Rad, the modal was already built with a blank template, with my custom login form added via a shortcode.
November 25, 2016 at 10:31 pm #1271245
thecashbagParticipantThis reply has been marked as private.November 25, 2016 at 11:31 pm #1271267
RadModeratorHi there,
The problem is that your form is not actually related to ajax. I created a sample here http://wordpress-15765-63246-180943.cloudwaysapps.com/sample-login/
It submits the form and reload the page instead of posting it through AJAX
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1271109 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
