Skip to content

💡[Feature]: Replace Default HTML Validations with Advanced Validations #540

@divysaxena24

Description

@divysaxena24

Is there an existing issue for this?

  • I have searched the existing issues

Feature Description

Description

Currently, the email subscription form uses the default HTML5 validation (e.g., required with the browser’s popup "Please fill out this field.").
While functional, this approach lacks customization, consistency, and user-friendly error messages.

Proposed Solution

  • Implement custom advanced form validations using JavaScript/Regex instead of relying only on the browser’s default validation.
  • Provide real-time feedback (e.g., red border, error text below the field).
  • Add validation rules such as:
    • Valid email format check (example@domain.com).
    • No disposable/temporary emails (optional).
    • Instant success indication when input is correct.
  • Display clear, styled error messages instead of browser tooltips.

Use Case

This feature would enhance the project by:

  • Making the subscription/signup experience more professional and user-friendly.
  • Providing consistent error messages across all browsers.
  • Helping users quickly correct mistakes without relying on generic browser popups.
  • Increasing trust in the project through a polished and reliable validation system.

Benefits

  • Improves user experience by giving consistent and friendly messages.
  • More control over styling and behavior.
  • Prevents bypassing validation by browser inconsistencies.

Add ScreenShots

Image

Priority

High

Record

  • I have read the Contributing Guidelines
  • Are you a GSSOC'25 contributor
  • I want to work on this issue

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions