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 6 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.
Form-Controls/index.html
Outdated
| 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
There was a problem hiding this comment.
Evening Mr. Emmanuel
I just added to the codebase the regular expression pattern validation of the customer name in form controls.
Cheers!
Form-Controls/index.html
Outdated
| 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)
There was a problem hiding this comment.
Again I also added to the regular expression pattern validation for the email on form controls.
Thanks for the remarks.
Cheers!

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