Replies: 2 comments
-
|
Hi @kipmyk, Your workaround is good. I've applied it to core, no need for an extra form option. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi @picocodes, thanks for adding this to core. This removes the need for my workaround and improves UX out of the box. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary:
Add a built-in option to automatically hide form fields and clear input values upon successful subscription, improving user experience by preventing confusion and reducing duplicate submissions.
Problem Description:
Currently, when a Noptin subscription form succeeds, the success message appears but the form fields remain visible and populated. This can lead to:
User confusion about whether the submission was successful
Accidental duplicate submissions
Poor UX, especially on forms with multiple fields
Implement a form setting called "Enhanced Success State" (or similar) that:
Hides form elements on success: Automatically hide input fields, labels, and submit button when the form receives the success class
Clears form fields: Reset all input values (except hidden fields) to prevent duplicate submissions
Shows only success message: Ensure the success response is prominently displayed
Current Workaround (What I'm Using Now):
I've implemented a custom solution that adds inline CSS and JavaScript to handle the success state:
Beta Was this translation helpful? Give feedback.
All reactions