space10-community/conversational-form

Improve validation for native HTML5 input field types

Open

#228 建立於 2018年3月24日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)HTML (3,772 star) (789 fork)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.

貢獻者指南