Am I missing a step here somewhere, trying to surpress the error text.
Originally just trying to surpress text when that didn't work threw in the ErrorStyle and InlineErrors but still get the whole shebang on failure. Right now just have the function btnLoginClick making a call to form.Validate(). If I inspect the frmLogin object in Firefox it does in fact have those three properties set to false.
Code:
isc.DynamicForm.create({
ID:"frmLogin",
autoDraw:false,
titleOrientation:"top",
numCols:2,
showErrorText:false,
showErrorStyle:false,
showInlineErrors:false,
fields:[
{name:"user_name", title:"Username", type:"text", colSpan:2, width:100, align:"center", required:true},
{name:"user_pass", title:"Password", type:"password", colSpan:2, width:100, align:"center", required:true},
{name:"btnLogin", type:"button", title:"Login", width:50, endRow:false, click:"btnLoginClick(form)"},
{name:"btnActivate", type:"button", title:"Activate", width:75, startRow:false}
]
});
Comment