usds / benefits-enrollment-prototype

https://usds.github.io/benefits-enrollment-prototype/
31 stars 13 forks source link

Require at least 1 benefit program to be selected #50

Closed raquelromano closed 7 years ago

raquelromano commented 7 years ago

If neither benefit is selected on 00-screener/select-benefits.html, things get weird down the line now that single-program flow is enabled. (E.g., neither household information is displayed, but later on a value of 0 is pre-filled.)

Unfortunately, HTML5 validation does not seem to support requiring at least one checkbox to be checked, so would have to do this with JavaScript.

jaredcunha commented 7 years ago

I wish HTML5 allowed something like that in the required attribute. This something that totally slipped my mind, but yeah, kinda borks the experience moving forward if no selections are made.

Anyways… this is fixed.