Election Day Reminder Form
wbprice opened this issue · 1 comments
wbprice commented
This is a form with two inputs (one for telephone, the other for email). A link that opens the privacy policy in a new tab is provided. User is able to submit the information or close the form.
Behavior Rules
- User needs to complete at least one input to complete the form.
- User's input needs to pass validation in all forms that are filled out. (telephone, email)
- If telephone or email fail validation, display an appropriate error message under the input.
- If all fields pass validation, submit the data to an endpoint.
- On submission success, close the modal. Flip a flag
contactInfoSubmitted
to true. - On submission error, display an error message in the modal.
- Clicking cancel clears the inputs and closes the modal.
wbprice commented
This is nearly done. Need to write tests.