Change default validation error message

M

Mark L

Hello. i was wondering if there was a way to change the wording on an error
message. I have some validation in my form, simple validation like required
fields. When trying to submit the form without any information in these
required fields it prompts the user with an error message saying Infopath
cannot submit the form because of validation issues etc...I wanted to try to
cahnge the wording in that message...any assistance would be great, thanks in
advance!
 
R

Rajitha

Hi,
You need to write code for this.
You can put your code like this in submit.
if (thisXDocument.Errors.Count > 0)
{
Alert(“Your message hereâ€);
}
Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top