<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: OnSaveRequest : how to test mandatory fields</title><link>https://www.infopathdev.com:443/forums/thread/14325.aspx</link><pubDate>Wed, 22 Feb 2006 16:53:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14325</guid><dc:creator>rocknbanas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14325.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14325</wfw:commentRss><description>Thanks a lot for the answer. I'm going to use that.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;&lt;br /&gt;Yann.</description></item><item><title>Re: OnSaveRequest : how to test mandatory fields</title><link>https://www.infopathdev.com:443/forums/thread/14324.aspx</link><pubDate>Wed, 22 Feb 2006 16:39:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14324</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14324.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14324</wfw:commentRss><description>Hi,&lt;br /&gt;You can use the thisXDocument.Errors.Count , to check all mandatory fields are filled or not(validation errors),&lt;br /&gt;&lt;br /&gt;I hope this will help you,&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;&lt;br /&gt;K.Ramana Reddy&lt;br /&gt;</description></item><item><title>OnSaveRequest : how to test mandatory fields</title><link>https://www.infopathdev.com:443/forums/thread/12785.aspx</link><pubDate>Wed, 22 Feb 2006 14:05:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12785</guid><dc:creator>rocknbanas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12785.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12785</wfw:commentRss><description>Hello everyone !&lt;br /&gt;&lt;br /&gt;I have built some code managed (in c#) InfoPath forms, which have some mandatory fields. I have this question : &lt;br /&gt; - Is there a way to know if all mandatory fields have been filled by the user from the OnSaveRequest event ?&lt;br /&gt;&lt;br /&gt;I need to code that in my project. I know I can parse the xml data using XPath. But my forms might change in the future, and I want to avoid hardcoding. Since InfoPath shows up a warning message when the user saves the form even if he did not filled all the mandatory fields, I guess this can be also done by code. But I can't find how.&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;&lt;br /&gt;Yann.</description></item></channel></rss>