What's property in XUI widget which similiar with "required" attribute in form element in HTML? What I mean is to force users to input some value in widget (not blank).
Class('App', 'xui.Com',{ Instance:{ iniComponents : function(){ // [[Code created by CrossUI RAD Tools var host=this, children=[], append=function(child){children.push(child.get(0))};
append( (new xui.UI.SButton) .setHost(host,"ctl_sbutton6") .setLeft(150) .setTop(90) .setWidth(120) .setCaption("Submit") .onClick("_ctl_sbutton6_onclick") );
return children; // ]]Code created by CrossUI RAD Tools }, _ctl_sbutton6_onclick : function (profile, e, src, value){ var ns = this; var v2=ns.ctl_comboinput6.getUIValue(); var v2=ns.ctl_comboinput7.getUIValue(); if(!v2){ xui.message("'Required' field must be specified"); ns.ctl_comboinput7.activate(); } } } });
Class('App', 'xui.Com',{ Instance:{ iniComponents : function(){ // [[Code created by CrossUI RAD Tools var host=this, children=[], append=function(child){children.push(child.get(0))};
append( (new xui.UI.SButton) .setHost(host,"ctl_sbutton6") .setLeft(150) .setTop(90) .setWidth(120) .setCaption("Submit") .onClick("_ctl_sbutton6_onclick") );
return children; // ]]Code created by CrossUI RAD Tools }, _ctl_sbutton6_onclick : function (profile, e, src, value){ var ns = this; var v2=ns.ctl_comboinput6.getUIValue(); var v2=ns.ctl_comboinput7.getUIValue(); if(!v2){ xui.message("'Required' field must be specified"); ns.ctl_comboinput7.activate(); } } } });