TrustTheVote-Project / horatio-client

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

JSON is being transmitted for blank fields, preventing submission #20

Closed waldoj closed 9 years ago

waldoj commented 9 years ago

If you fill out the phone number field, and then delete it (such as if your browser auto-fills the form field when providing your address), the produced JSON pretends that the field has been completed: "more_info":{"telephone":"--"},. This, of course, results in a rejected submission, but not that is detected by the client-side error checking. There is nothing that the user can do to fix it.

waldoj commented 9 years ago

Solution: Combine them into one field. They don't need to be spread out anyway.