Avatar

Level 2

OK. The script didn’t work. It did not identify the error and even when I unchecked the Validation Script Message, I still got the Validation message.

But your answer did give me the solution. I took my xfa message and placed it in the validation message box and now the user gets ONE error message and with the message I wanted to send him.

I am trying to do the same thing with the Sunday date issue. I added a false commend to prevent submission and placed the xfa message in the Validation box. In this case, for some reason the validation doesn’t work.

if (!(this.isNull || this.rawValue.length == 0)) {
     if (this.rawValue != "Sun") {
          xfa.host.messageBox("The selected date is not a Sunday.");
              false
          }
}

I didn’t sleep all night trying to fix these issues and now it all looks so much better… I am simply grateful for your help!!!