Hello webix-jet there is such a feature in models.

 function onShowElement(formName){ for (var i = 2; i<4; i++){ $$(formName).elements["not"+i].show(); $$(formName).elements["application"+i].show(); } } 

I return this function

 return { showElement: onShowElement }; 

then call it in View

 { view: "button", value: "Ишущии работу", click: function () { window.location.href = "#!/top/jobSearchForm"; showElement.showElement('mainForm'); } }, 

the model and the view are connected to each other as other functions work but just for the connection

 define([ "models/allFunction" ],function(showElement){ 

what am I doing wrong??? Judging by an error, he cannot find a form with such an ID although it is

    1 answer 1

    Judging by the code that you have, you call onShowElement but do not pass it the form formName , respectively, instead of the data, the onShowElement function receives nothing, that is, that same undefined , and of course it does not have the necessary ID attribute. Call onShowElement ( here is the name of the form ) and everything should work