Required="required" not working on Android Application


#1

Hi,
I’ve tried using requried=“required” or/and ng-required=“true” on form inputs.
While it works wonderfully on Chrome and Android Chrome, if I run the application as an application (ionic run android) android WebView probably doesn’t recognize this attribute and submit the form even if the required fields haven’t been filled.

Is there any other way to do validation so it’ll work on android application?


#2

It appears that both Android and iOS WebViews do not support html5 validation attributes.
http://caniuse.com/#feat=form-validation
How do you do validation than?


#3

For the most part, everyone generally relies on the AngularJS validation. However, that only triggers if the form has a name and uses the ng-submit attribute.

https://docs.angularjs.org/guide/forms

If you’ve got a specific CodePen sample, we can take a look at it too.