tourest icon indicating copy to clipboard operation
tourest copied to clipboard

Add Success Message for Newsletter Subscription with Auto-dismiss Functionality

Open akshay0611 opened this issue 1 year ago • 0 comments

Problem

There was no success message displayed after a user subscribes to the newsletter. This update addresses that issue.

Solution

  1. Added a success message that shows up upon form submission, thanking the user for subscribing.
  2. Used JavaScript's setTimeout() function to automatically hide the success message after 4 seconds.
  3. Ensured the success message is hidden by default and only shown after successful submission.

Testing

  • Test the subscription form by entering a valid email.
  • Ensure the success message appears after submission and disappears after 4 seconds.

This update improves the user experience by providing immediate feedback to the user upon submitting their email and it closes the Issue No #4 .

Screenshot 2025-01-29 at 11 44 21 AM

akshay0611 avatar Jan 29 '25 06:01 akshay0611