space10-community/conversational-form

Improve validation for native HTML5 input field types

Open

#228 opened on 2018年3月24日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)HTML (3,772 stars) (789 forks)batch import
enhancementhelp wanted

説明

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 not only recently successfully validated an <input name='' type='email'> with flowStepCallback.

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.

コントリビューターガイド

Improve validation for native HTML5 input field types · space10-community/conversational-form#228 | Good First Issue