London | 26-ITP-January | Carlos Abreu | Sprint 2 | Form Controls#1155
London | 26-ITP-January | Carlos Abreu | Sprint 2 | Form Controls#1155carlosyabreu wants to merge 4 commits intoCodeYourFuture:mainfrom
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| name="customer-name" | ||
| required | ||
| minlength="2" | ||
| placeholder="Enter first and last name"> |
There was a problem hiding this comment.
Can you think of another way to verify if the customer name is a valid name
There was a problem hiding this comment.
Certainly!
Here is one alternative approaches to validating a customer name in HTML form controls:
Using pattern attribute with regex
This allows for more specific validation patterns:
Name
Must be at least 2 characters long
| id="customer-email" | ||
| name="customer-email" | ||
| required | ||
| placeholder="example@domain.com"> |
There was a problem hiding this comment.
Can you also think of another way to verify if the customer email is a valid email?
There was a problem hiding this comment.
Using multiple attributes for comprehensive validation
Email Address
We'll use this to verify your email format (6-254 characters)

Learners, PR Template
Self checklist
Changelist
Form controls project to be merge into upstream main branch