Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Should be simple

    Am I missing a step here somewhere, trying to surpress the error text.

    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}
        ]
    });
    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.

    #2
    Just set showErrorText:false without setting the others. showInlineErrors:false means the text is shown at the top of the form instead of next to each item ("inline").

    Comment


      #3
      Well figured out my problem, after trying many different things I decided I was gonna a make a stand alone file to send you guys to show that it wasn't working. After all this I decided to open the dev console and blam it hit me, I was still using version 6.0 and the deisired functionality wasn't introduced untill ver 6.5 so I upgraded to 6.5.1(I'll wait a bit on 7.0) and my test file works as advertised. Now I have to go see how the upgrade will effect my project as a whole. I appreciate your time and effort.

      Comment

      Working...
      X