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