Closed monkeymonk closed 8 years ago
Ok. So I finally find the answer :
export default function FormConfig(formlyConfigProvider) {
'ngInject';
formlyConfigProvider.extras.errorExistsAndShouldBeVisibleExpression = 'fc.$touched || form.$submitted';
}
I've already tried with this but updating the expression with my namespace... the thing is that fc
and form
seems to be internal magic stuff.
This should be announced in the examples ! ^^'
Hi there,
I'm trying to display the fields that contains error (required, etc) after the user try to submit the form.
For now, the only way to display error is to focus each fields one after the other... thus is way to dumb.
Is anyone know how to trigger a validation of the form ?