Hi all, as you know ,form has 4 form-level event rules : load, save, sumbit

Hi all,
as you know ,form has 4 form-level event rules : load, save, sumbit, failedValidation.
failedValidation event suppose to be triggered when form validation fails.
but when the submit button contains a confirmation message, failedValidation event won't be triggered.
form validation is still triggered.

do you have any ideas about this issus?
i'm using appian6.71.

btw, what i want to do is that we have serveral tabs in one form, when validation fails, we hope it can automatically jump to the error tab.

thanks in advance....

OriginalPostID-88408

OriginalPostID-88408

  Discussion posts and replies are publicly visible

Parents
  • Hi eduardo, there is another problem.
    i used following code.
    $('.submitButton').click(
    function showErrors(){
    debugger;
    errorList = $('p.errorMessage');
    for(i=0;i<errorList.length;i++){
    if(errorList[i].style.display!='none'){
    re = new RegExp('.*'+errorList[i].parentNode.parentNode.namespace);
    asi.alert('<table><tr><td><font color = red><b>There is an Error submitting this form!</b></font></td></tr><tr><td>'+
    errorList[i].parentNode.parentNode.id.replace(re,'')+': '+
    errorList[i].innerHTML+'</td></tr></table>');
    break;
    }
    }
    })

    If there's a confirmation message , it does not work either.
    it will block the confirmation message and the fomr cannot be submited although there is no error message.
Reply
  • Hi eduardo, there is another problem.
    i used following code.
    $('.submitButton').click(
    function showErrors(){
    debugger;
    errorList = $('p.errorMessage');
    for(i=0;i<errorList.length;i++){
    if(errorList[i].style.display!='none'){
    re = new RegExp('.*'+errorList[i].parentNode.parentNode.namespace);
    asi.alert('<table><tr><td><font color = red><b>There is an Error submitting this form!</b></font></td></tr><tr><td>'+
    errorList[i].parentNode.parentNode.id.replace(re,'')+': '+
    errorList[i].innerHTML+'</td></tr></table>');
    break;
    }
    }
    })

    If there's a confirmation message , it does not work either.
    it will block the confirmation message and the fomr cannot be submited although there is no error message.
Children
No Data