I create custom html form with Webix control on it:
webix.ui({ view: “counter”, id: “counter_1”, container: “table_column_id”});
How to get all values from controls placed on form? It is possible to validate all controls?
I create custom html form with Webix control on it:
webix.ui({ view: “counter”, id: “counter_1”, container: “table_column_id”});
How to get all values from controls placed on form? It is possible to validate all controls?
Now i just put all controls into array and call “getValue()” from “for” loop when i need to get all values. Is this correct way to do this?
How to set custom validation rule to the component without form?
put all controls into array and call “getValue()” from “for” loop
Yes, this approach will work as well.
But can you please clarify why don’t you want to use ui.form or ui.htmlform? Both have the possibilities to get/set values and validate the data. Perhaps, the article about the data validation in Webix will be useful: Data Validation of Guides, Managing Data in a Component Webix Docs
I tried to use ui.htmlform but “htmlform.getValues()” return only regular input elements (i.e. “document.createElement(‘input’)”), without webix controls.
Also ui.htmlform reference has no information about validation.