Form submit button disable

Hi,
I have designed form with two buttons 1) submit 2) cancel
but my question is, i need to disable the submit button until any changes are made in the form.

please help me on this…Thank You.

You can use “disabled” API

http://docs.webix.com/api__link__ui.view_disabled_config.html

http://docs.webix.com/api__ui.baseview_enable.html

Thank you maksim…how to can i enable the button when any changes are made?
Here is my sample code
http://webix.com/snippet/ca6ba64c

From the above form, i need to enable login button when anything enter into the input fileds or Form.At the same time when i made form empty then again it has to go disable mode…please excuse typos

Please help me…

Thank you

You can use onChange event ( or onKeyPressed ) and .enable API

http://webix.com/snippet/2dabed96

Thank you maksim…how to can i enable the button when any changes are made?

From the above form,From includes input, dropdown, checkbox etc, If I change any value using mouse or keybord button we should enable the button. Instead of using the onChange method at every place. we need to use something at one place to do the same action.

http://webix.com/snippet/229dffc5

Please help me…

Thank you

There are two solutions

a) use onChange handlers ( form itself has onChange event that must work if any input in the form was changed. Unfortunately it is partially broken in Webix 2.2 )

b) you can poll the form state each n milliseconds and update state of button when value is changed.

http://webix.com/snippet/7751fb08

Awesome maksim…Thank you great help…