Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Two Different SharePoint 2010 InfoPath Browser Error Message

Posted on 2013-11-12
1
Medium Priority
?
1,024 Views
Last Modified: 2013-11-12
Hello,

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?

Thanks,
Joseph Irvine
0
Comment
Question by:jkeagle13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
jkeagle13 earned 0 total points
ID: 39642232
I'll answer my own question.

I found out that I received the dialog box with the shortcuts listed when I only had one rule on the submit button with a submit action.

It turns out on the other forms I had multiple actions that each had a submit action. For example, if field1 = yes, then set field2 = "value 1" and submit. If field1 = no, then set field2 = "value 2" and submit. So even though it was impossible for both submit actions to be called; field1 could never be both yes and no at the same time, InfoPath somehow decided to throw a different errors message.

Not sure if this is the root cause, but I tried enough experiments to know that this is at least one reason why one might see two different validation error messages depending on how the logic is set for submit buttons.

Thanks,
Joseph Irvine
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question