TrustTheVote-Project / horatio-client

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

Conditionally require reason documentation #38

Closed waldoj closed 9 years ago

waldoj commented 9 years ago

Forms can be submitted without any supporting documentation for the claimed reason. All but 5 reasons require documentation. We can't just slap a required on there. But we can use jQuery to add a required element on <textarea id="reason__documentation_field"> if a the selected reason__code demands an explanation. This can be done by modifying the $("input[name='reason__code']").change( function(){}) stanza.