Avatar

Correct answer by
Level 10

Hi,

That is how the script is set up. Even without checking the response of the messageBox, you have three main if/else statements:

if (first test condition) {

     messagebox script

}

else if (second test condition) {

     another messageBox script

}

else {

     submit form

}

So, if the first condition is met, the subsequent else if statement and the else statement will not fire.

You may want to move the email script into the if nResponse == 4 script.

Hope that helps,

Niall

View solution in original post