Crocoblock/jetformbuilder

Suggestion: Add Custom Success Messages for Specific Actions in User Login Form

ricardoaraujo330 opened this issue · 0 comments

I’d like to propose an enhancement to improve the UX of the login form in the plugin by allowing custom success messages for specific actions.

Current Behavior:
Currently, all success messages (e.g., "Form successfully submitted") are grouped in the general form messages area. This does not distinguish between different actions, such as logging in or resetting a password.

Proposed Feature:
Allow the success message to be tied directly to the "User Login" action, with customizability for specific actions:

When a user logs in successfully, display a message like: "Login successful."
When a user submits a password reset request, display a message like: "We’ve sent you a password reset link, please check your inbox."

Benefits:
Improves user experience by providing clear, action-specific feedback.
Enhances clarity and usability for forms with multiple functionalities.

Example Use Case:
A user submits a login form and receives "Login successful" instead of the generic "Form successfully submitted."
A user requests a password reset and sees "Password reset link sent" rather than the same generic message.

Alternatives Tried:
A custom solution to display messages via popups has been suggested. However, adding more custom code to the project is not a sustainable solution. I believe this functionality would be better as a core feature of the plugin.

Thank you for considering this suggestion!