-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
London ITP- Jan25 | Shohreh Bayat | Onboarding-Form Control | Week 2 #194
base: main
Are you sure you want to change the base?
London ITP- Jan25 | Shohreh Bayat | Onboarding-Form Control | Week 2 #194
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @Shohreh-bayat . Let me know what you find out about the form validations and patterns.
Form-Controls/index.html
Outdated
</div> | ||
<div> | ||
<label for="email">E-mail</label> | ||
<input type="email" name="email" id="email" placeholder="e.g., user@example.com" pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$" size="30" required > <br> <br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goodness! This is a lot of validation. Tell me, what happens when you remove the pattern and test your form (by writing in a malformed email and hitting submit)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Sally, Initially, I tried to use simpler validations like .+@example.com size="30" required
but in reality it was not allowing me to enter my own email address when I was testing the form, so I put this long validation to allow different email to be accepted e.g my own email address has underscore "_" on it, and with a simple pattern, the form would not accept that.
<label for="email">E-mail</label> | ||
<input type="email" name="email" id="email" placeholder="e.g., user@example.com" pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$" size="30" required > <br> <br> | ||
</div> | ||
</fieldset> <br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this br tag trying to do?
</fieldset> <br> | |
</fieldset> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Sally, I was trying to create space so that it shows better on the website. Considering that we are not allowed to use CSS,
tag was doing that for me.
<!-- | ||
try writing out the requirements first as comments | ||
this will also help you fill in your PR message later--> | ||
<fieldset> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the fieldsets, you legend! ⭐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, Sally ⭐
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.