space10-community/conversational-form
View on GitHubImprove validation for native HTML5 input field types
Open
#228 opened on Mar 24, 2018
enhancementhelp wanted
Description
Hey team! Just wanted to say how awesome this project is. I do believe this to be the future of forms. I would like to recommend a feature request for more simple native validation.
- description of the actual behavior
Validation is unnecessarily complex. I have
notonly recently successfully validated an<input name='' type='email'>withflowStepCallback.
More examples in the docs for each input type would get the community a lot further. Research shows that users agree that "handling validation for some questions is unnecessarily complex". Even simple min/max validation is left unanswered.
- expected behavior
When a native input field errors the
cf-error="This field is invalid yo"message should automatically interrupt the form flow and display its message to the user by default. Use of flowStepCallback and regex patterns should be overrides for custom validation purposes.
This way conversational forms can be used out the box for everyone leaving custom validation work to advanced users.