Craig-Creeger / react-likert-scale

A React component that renders a Likert scale. It is responsive and accessible.
Creative Commons Zero v1.0 Universal
8 stars 6 forks source link

Likert Question require answer #24

Closed ajwecker closed 2 years ago

ajwecker commented 3 years ago

Great package! Within a form is there a way to make a Likert Question required?

Craig-Creeger commented 3 years ago

Sure, you can use Javascript client-side form validation to read the value of the Likert scale and cancel the form submit if the value is missing.

I'm confident you can make it work with the Likert package as-is, but it may take some clever programming. I'll try to get an example put together, but honestly I'm not sure how quickly I can get that done.