Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sprint_2] Issue RSS-ECOMM-2_09: Implement client-side validation for required fields in the registration form 🔒 #84

Closed
2 tasks done
stardustmeg opened this issue Apr 29, 2024 · 1 comment · Fixed by #116
Assignees
Labels

Comments

@stardustmeg
Copy link
Owner

stardustmeg commented Apr 29, 2024

Description

Implement client-side validation for all required fields in the registration form using JavaScript or a front-end library. The fields include:

  • Email: A properly formatted email address (e.g., [email protected])
  • Password: Minimum 8 characters, at least 1 uppercase letter, 1 lowercase letter, and 1 number
  • First name: Must contain at least one character and no special characters or numbers
  • Last name: Must contain at least one character and no special characters or numbers
  • Date of birth: A valid date input ensuring the user is above a certain age (e.g., 13 years old or older)
  • Address fields:
    • Street: Must contain at least one character
    • City: Must contain at least one character and no special characters or numbers
    • Postal code: Must follow the format for the country (e.g., 12345 or A1B 2C3 for the U.S. and Canada, respectively)
    • Country: Must be a valid country from a predefined list or autocomplete field

Ensure that the chosen validation approach is compatible with CommerceTools or the chosen platform.

Acceptance Criteria ✔️

  • Each required field in the registration form has validation rules
  • Registration form submission is prevented if the input doesn't meet the requirements

As Queen sang, "We are the champions, my friends," and with our robust validation rules, we'll keep on fighting 'til the end of invalid form submissions! 🎶🏆

@stardustmeg stardustmeg self-assigned this Apr 29, 2024
@stardustmeg stardustmeg added feature New feature or request sprint2 📑 labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants