Ensure required attribute gets added to all inputs.
Ensure hidden fields do not get marked as required.
Add a separate Validator component to handle user messaging re: invalid fields.
Validator:
Listen to every required input for an "invalid" event.
On a form.checkValidity() call, catalog all invalid fields; show information to user, then disappear after a couple seconds; also highlight the invalid fields.
Remove extra invalidity highlight on fields when they are focused
This allows users to save incomplete forms, but will not allow them to be published.
Changes:
required
attribute gets added to all inputs.Validator:
required
input for an"invalid"
event.form.checkValidity()
call, catalog all invalid fields; show information to user, then disappear after a couple seconds; also highlight the invalid fields.focus
edThis allows users to save incomplete forms, but will not allow them to be published.
[Fixes #138 ]