akshitagupta15june / akshitagupta15june/PetMe

Inline Validation in Donate Animal Form

Ouverte
#920 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
HTML
Étoiles
515
Forks
747
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**Is your feature request related to a problem? Please describe.**
Yes

**Describe the solution you'd like**
I can submit the donate animal form with invalid data as shown in the below image:
1

**Describe alternatives you've considered**
I want to implement inline validation in this form. This will show an error message to the user below the respective field. And we can add constraints for each field. According to me, the following constraints can be applied:

Full Name: Minimum 6 characters
Email: Valid regex
Address: min 6 words
City: required
State: required
country: dropdown to select
Phone: valid regex
Pet type: add dropdown for cat or dog
Pet Name: Minimum 3 characters
Pet Color: min 3 characters
Pet Breed: required
Pet Image: required

Let me know if you want to change any of the above constraints
This will prevent sending invalid data to the backend.

I want to implement functionality similar to the below sample video:

https://github.com/subhashis2204/project-annapurna/assets/86224794/acf65c1c-605c-4117-bd52-fa6e8211abe2

## Request
**Please assign me this issue under SWOC' 24.**

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.