Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / February 2006

Tip: Looking for answers? Try searching our database.

Submit to a form library with Validation Errors.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob Chauvin ( Paix dehors ) - 14 Feb 2006 16:07 GMT
I would like to allow documents to be saved to a form lib even if they
contain validation errors.  Currently if I try to submit the form, it
displays an error message regarding the validation errors and rejects the
submit.

Any way to get around this?
Ben Walters - 14 Feb 2006 22:38 GMT
Hey Bob,
one option here is to delete the errors from the collection before you fire
the submit event, if you add some managed code behind the button you can do
this

e.XDocument.Errors.DeleteAll();
e.XDocument.Submit();

Cheers
Ben Walters

> I would like to allow documents to be saved to a form lib even if they
> contain validation errors.  Currently if I try to submit the form, it
> displays an error message regarding the validation errors and rejects the
> submit.
>
> Any way to get around this?
Bob Chauvin ( Paix dehors ) - 15 Feb 2006 14:16 GMT
Thanks Ben, I'll give that a try.

> Hey Bob,
> one option here is to delete the errors from the collection before you
[quoted text clipped - 15 lines]
>>
>> Any way to get around this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.