BYAMN-Learning icon indicating copy to clipboard operation
BYAMN-Learning copied to clipboard

Add custom error message for invalid email format instead of default browser message

Open shwetap3000 opened this issue 1 year ago • 6 comments

Description

Currently, when a user enters an incorrectly formatted Gmail address (or any invalid email), the browser displays its default validation message. This results in inconsistent UX and limited control over the message shown.

Expected Behavior

  • When the email format is invalid, the application should show a custom error message (e.g., “Please enter a valid email address”).
  • The message should match the app’s UI/UX style.
  • Validation should not rely solely on the browser’s built-in message.

Actual Behavior

The browser shows its own default validation message, which cannot be styled or customized.

Suggested Solution

Implement custom email validation using regex validation method. Show a consistent, user-friendly error message when the input does not match the expected email format.

Screenshot

Image

shwetap3000 avatar Nov 18 '25 10:11 shwetap3000

Thank you for raising this issue!

We'll review it as soon as possible. We truly appreciate your contributions! ✨

Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊

github-actions[bot] avatar Nov 18 '25 10:11 github-actions[bot]

@DYHARDx Could you plzz assign this issue to me..??

shwetap3000 avatar Nov 18 '25 10:11 shwetap3000

@DYHARDx Could you please add the label tag as well..??

shwetap3000 avatar Nov 20 '25 12:11 shwetap3000

🤖 Auto-unassignment Notice

This issue has been automatically unassigned from @shwetap3000 because it was assigned more than 7 days ago (on Thu Nov 20 2025) and no pull request has been opened to address it.

What happens next?

  • This issue is now available for anyone to pick up
  • If you were working on this and need more time, please comment on this issue and ask to be reassigned
  • If you have a draft PR or work in progress, please open a draft PR to maintain your assignment

For future reference:

  • Please open a draft PR within 7 days of being assigned to an issue
  • This helps keep the project moving and ensures issues don't get stuck

Thank you for your understanding! 🙏

github-actions[bot] avatar Nov 28 '25 06:11 github-actions[bot]

@shwetap3000 are you want to work this isuue?

DYHARDx avatar Dec 02 '25 05:12 DYHARDx

@DYHARDx , Shall I work on this issue?

ankithajv avatar Dec 07 '25 13:12 ankithajv