Closed
Bug 2002026
Opened 9 months ago
Closed 5 months ago
Use HTML5 forms API to prevent submitting the uplift form when it's incomplete
Categories
(Conduit :: Lando, defect, P3)
Conduit
Lando
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: padenot, Assigned: sheehan)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Required fields should be marked as such in the markup, to prevent accidentally submitting the form only to see an error message, and having to re-type the messages.
| Assignee | ||
Comment 1•9 months ago
|
||
Taking a closer look it appears the required attribute is set on all the fields except two:
- the repository selection, as Django forms doesn't support
requiredonCheckboxSelectMultiplewidgets: "the checkboxes won’t include the required HTML attribute if the field is required because browser validation would require all checkboxes to be checked instead of at least one." - the "steps to reproduce for manual QE testing", as that field is only required when "Needs manual QE testing" is true.
We'll have to solve this with Javascript on the client side for these two cases.
| Assignee | ||
Updated•6 months ago
|
Assignee: nobody → sheehan
Comment 2•6 months ago
|
||
Comment 3•5 months ago
|
||
Authored by https://github.com/cgsheeh
https://github.com/mozilla-conduit/lando/commit/e0566ab4d9e346c3a8050fe1b5d3df8539ab250c
[main] uplift: prevent submitting uplift form when incomplete (Bug 2002026) r=shtrom
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Updated•5 months ago
|
Component: General → Lando
You need to log in
before you can comment on or make changes to this bug.
Description
•