tcomb-form-native icon indicating copy to clipboard operation
tcomb-form-native copied to clipboard

Validating a single field instead of complete form.

Open zaka-xavia opened this issue 6 years ago • 1 comments

is there a way to validate single field istead of complete form ? spose there are 3 fields and every field has its own validation but i want to validate only one field when it is changed.is there a way?

zaka-xavia avatar Dec 12 '18 20:12 zaka-xavia

You would need to know the path. The tcomb-form docs have a section about that: https://github.com/gcanti/tcomb-form/blob/master/GUIDE.md#accessing-fields this.refs.form.getComponent(path).validate();

compojoom avatar Jan 14 '19 07:01 compojoom