TrustTheVote-Project / horatio-client

A client for an absentee ballot request form.
MIT License
2 stars 4 forks source link

Requesting delivery by email results in wrong behavior #29

Closed waldoj closed 9 years ago

waldoj commented 9 years ago

Expected outcome: The form should have refused to submit because the email address was missing.

Behavior: I left the email field blank, but I was not prompted to complete it, it validated, and a PDF was generated. The resulting PDF had "mailing address" checked off, instead of "email":

method

I suspect that this is really two problems. The first is a failure of the front-end validation. The second is a simple misplacement of the X on the form.

waldoj commented 9 years ago

The second problem has been solved.

waldoj commented 9 years ago

Solve this with jQuery. If email is checked off, then add the required attribute to the email field.