Skip to content

London | 26-ITP-May | Mandip Sanger | Sprint 1 | Form Contols#1440

Open
mandipsanger wants to merge 25 commits into
CodeYourFuture:mainfrom
mandipsanger:form-controls
Open

London | 26-ITP-May | Mandip Sanger | Sprint 1 | Form Contols#1440
mandipsanger wants to merge 25 commits into
CodeYourFuture:mainfrom
mandipsanger:form-controls

Conversation

@mandipsanger

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I have completed Form Controls task.

@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 3cc5aa8
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6a2c5a364ab9fe0008bda0cd
😎 Deploy Preview https://deploy-preview-1440--cyf-onboarding-module.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
2 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 91 (🟢 up 5 from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

This comment has been minimized.

@mandipsanger mandipsanger added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 10, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 10, 2026
@mandipsanger mandipsanger added 🏕 Priority Mandatory This work is expected Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Onboarding The name of the module. labels Jun 10, 2026
@Poonam-raj Poonam-raj added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jun 10, 2026
Comment thread Form-Controls/index.html Outdated
</footer>
</body>
</html>
<html lang="en"User-agent: *

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does <html lang="en"User-agent: * Allow: /> mean?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh my bad. I was auto complete.

Comment thread Form-Controls/index.html Outdated
Comment on lines +14 to +16
<header>
<h1></h1>
</header>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this header doing? There's no text here. Empty elements should be removed

Comment thread Form-Controls/index.html Outdated
</select>
</div>

<input type="submit" value="Submit">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have expected this to be a submit button
This tag is also not closed.

Comment thread Form-Controls/index.html Outdated
Comment on lines +43 to +53
<div>
<p>Please select a size</p>

<label for="size">Choose a size:</label>
<select name="size" id="size">
<option value="xs">Extra Small</option>
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>
</select>
</div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come you decided not to wrap this section in a fieldset tag but you wrapped lines 30 - 41 in a fieldset tag?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you I think I have fixed the issues.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please review my PR so I can submit the enrollment form.

Comment thread Form-Controls/index.html Outdated
Comment on lines +48 to +51
<option value="xs">Extra Small</option>
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be useful here to have a default select option so that the form doesn't default to picking a size accidentally. E.g. if i don't pick a size, the form will submit XS but I might not want XS. It would be better to have a default value that doesn't let the user submit and forces them to select a size.

@Poonam-raj Poonam-raj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some issues:

  • When I leave all the inputs empty and click submit the page reloads like it has submitted. I get no messages saying anything is wrong or that I've missed inputs, but I should get some feedback like that.
  • When I submit less than two characters for the Name field I get a generic message that doesn't tell me what is actually wrong (screenshot)
Image
  • When i do input two characters in the Name field, the form lets me submit but I shouldn't be able to because Email and the other fields aren't filled out yet.

  • Throughout your form you lack 'required' tags which would mean the form cannot submit unless the user inputs into the fields. Please look into this.

@mandipsanger mandipsanger added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jun 10, 2026
@kfklein15 kfklein15 requested a review from Poonam-raj June 12, 2026 10:59
Comment thread Form-Controls/index.html Outdated
Comment on lines +33 to +44
<fieldset>
<legend>Please select your color</legend>

<input type="radio" id="black" name="color" value="Black" />
<label for="black">Black</label>

<input type="radio" id="beige" name="color" value="Beige" />
<label for="beige">Beige</label>

<input type="radio" id="red" name="color" value="Red" />
<label for="red">Red</label>
</fieldset>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can currently submit this form without selecting a colour - please amend

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we had to add color only selected was needed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have fixed with required.

@Poonam-raj Poonam-raj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have successfully addressed my concenrs about the form from before. But one last thing remaining with the colour selection

@Poonam-raj Poonam-raj added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jun 12, 2026
@mandipsanger mandipsanger added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jun 12, 2026
@kfklein15 kfklein15 requested a review from Poonam-raj June 12, 2026 19:01
@cjyuan

cjyuan commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@Poonam-raj The latest changes made by @mandipsanger looks good to me. Because the Onboarding deadline is today, hope you don't mind I mark this PR as "Complete" first.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Module-Onboarding The name of the module. 🏕 Priority Mandatory This work is expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants