Two Different SharePoint 2010 InfoPath Browser Error Message
Posted on 2013-11-12
I have a number of different SharePoint 2010 InfoPath browser forms.
I have noticed on some forms if one tries to submit with validation errors remaining, such as fields that have not been filled out, a nice error message appears in a dialog box that starts with: "InfoPath cannot submit the form because it contains errors." It then prompts the user to use the Ctrl+Shift+O and Ctrl+Shift+I keys for more information.
On some of my other forms, I get a much harsher message that starts with "The form cannot be submitted because it contains validation errors." It then has ugly syntax at the end like: "Field or group: my:First_x0020_Name Error: This is a required field!" There is then a "Show Details" message that isn't on the first message.
I would much rather have the first message on all of my forms when something is wrong - the error that specifies the shortcut keys to use. I have tried comparing my forms but don't readily see anything different. What causes InfoPath to choose one message over the other?