gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.29k stars 371 forks source link

Don't allow users to switch fields if field is invalid (force back) #164

Open hardikkaji opened 10 years ago

hardikkaji commented 10 years ago

Dear Team,

As per my experience, Alpaca should have feature in validation that one user cannot change focus on field until and unless he/she doesn't enter proper data.

P.S.: User should allowed to fill other data after validation success of Previous field data.

Please provide if any workaround for this.

Thanks in advance.

Regards,

yogeshmsharma commented 9 years ago

This is not good idea to restrict switch, instead error message must popup immediately. By adding this feature we may kill form level validation where all validations are done at Form Level. also it will lead into post focus and pre-focus validation.