Following information from : How to do Validation with angular JS/ionic Framework, I successfully created a form that is validated (or not) after the click on a button submit.
My problem is that this submit has to be in the of the page. I need this submit to be in the . Is there a way to make the click on the submit to execute the form validation and to sbmit the form if every is all right ?
<form novalidate="novalidate" on-valid-submit="addPoLine(true)" name="form_poLine" id="form_poLine"> <ion-view title="Select Product"> <ion-nav-buttons side="right"> <button class="button" ng-click="updatePoline()" ng-hide="addMode">Modify</button> <button type="submit" class="button button-block" ng-show="addMode">Add NOK</button> </ion-nav-buttons> <ion-content> <button type="submit" class="button button-block" ng-show="addMode">Add OK</button> ...
Th first button Add Nok doesn’t work but the second button Add OK do works. what(s wrong with my first submit button ?