Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
8 subscribers
Views
1600 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi all, as you know ,form has 4 form-level event rules : load, save, sumbit
eaglez
over 10 years ago
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
0
eaglez
over 10 years ago
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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
eaglez
over 10 years ago
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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data