Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I submit an empty form, the error validation message will be displayed as many times as I send the form.
Comment | File | Size | Author |
---|---|---|---|
#4 | fancy_login-error_message_duplicate-3016929-4.patch | 981 bytes | imclean |
Comments
Comment #2
desch CreditAttribution: desch commentedAny update on this? I am experiencing the same thing.
Cheers!
Comment #3
mayanksonawat CreditAttribution: mayanksonawat as a volunteer commentedHi There,
I am new to drupal and this is my first ever activity in community.
I've checked this issue and got a solution.
This issue is related to jquery, in file fancy_login/js/fancy_login.js file where we have to empty all the previous existing error messages and replace with our new message. Each time we click on login button append with existing message. So we have first initialize all variable with null value and then remove the message and container using jquery .remove() method.
Hope this solution finds you well.
The below code snippet will support my comment or simply replace the function moveMessages() with existing function's code
Comment #4
imclean CreditAttribution: imclean commentedA simplified version of #3, this also removes status messages when the modal is closed.
Comment #5
imclean CreditAttribution: imclean commented