Login in popup
-
Hello, thank you so much for the wonderful plugin!
I’m using a created Elementor Popup template, which hosts a shortcode for a website login form. This popup is triggered by clicking on a menu item that has a selector assigned to it. Everything is fine, the form opens and works, but until someone enters erroneous data (does not pass authorization). After that, when I call popup again, I see the same form with an error output (wrong password or blank fields).
I understand that the authorization form works with page refresh. I have tried various solutions:
- the tip from this topic: https://www.ads-software.com/support/topic/login-in-popup-do-not-show-errors/
var $login_errors = jQuery('div.um-login .um-field-error'); if ( $login_errors.length > 0 ) { jQuery('#uc_simple_popup_elementor_8a9573d a').trigger('click'); }
Unfortunately, the given code in this example doesn’t work in my case (I was outputting a message to the console to check if the first condition to look for a login error was met, the message was outputting fine, but then the click event was not executed). I changed the id’s to my own in the .trigger(‘click’) event: to the id of the popup form, but different buttons that would cause the popup to open.
- I tried using AJAX to submit the form asynchronously without reloading the page. But ran into a number of problems, including not being able to determine the path to the UM form handler to apply in the action attribute.
If you have any examples or recommendations, please share them. I would like to utilize your forms features in a faster solution for the end user – via popup, without having to visit additional pages.
- The topic ‘Login in popup’ is closed to new replies.