clear input in form

hello,

I have a form like this and I don’t find in API if it is possible to add a functionnality to clear / restart all input in a form cliking on “clear” button.

webix.ui({
				container:"areaA",

				view:"form", scroll:false,

				width:300,

				borderless:true,

				
				elements:[

					{ view:"fieldset", label:"Field Set 1", body:{

						rows:[

							{ view:"text", label:"Email"},

							{ view:"text", label:"Password"}

						]
					}},

					{ margin:5, cols:[

						{ view:"button", label:"Login" , type:"form" },

						{ view:"button", label:"Clear" }

					]}
				]
			});

thank u in advance for your help

maybe this?
http://docs.webix.com/api__link__ui.form_clear.html

Yep, .clear will work, but be sure that each field has a name attribute. Form api affects only elements that have a name attribute.

Note that the values clear assigns to controls might be surprising - for example invalid values for sliders, or undefined for selects. I left a comment on the documentation.