Form with tabview and validate

i have a form with tabviews (more then 1 tab). if i try to validate the form
this.getFormView().validate({hidden:true});
it runs on error
Uncaught TypeError: can’t access property “value”, this.getInputNode() is undefined
(in text.js)

if i touch any tab before validate , then all works o’k
Thanks

2 Likes

can you provide a snippet with the issue?
this one works as expected
https://snippet.webix.com/o2hk3gjy

hi,
i have found the problem. the couse ist pattern:{mask:"##/##/##"}
Look at this snippet
https://snippet.webix.com/x0gw546h
How can i use pattern without validate. i mean, an empty field should be allowed.
Thank you

as a workaround, try to set validate:()=>true or other custom validator to the element with pattern
you can set validate:null as well
https://docs.webix.com/api__ui.text_validate_config.html
https://snippet.webix.com/g7z504bx

This workaround with validate:null works fantastic. Thank You!

1 Like