<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Able to Send report with blank 'Data Required' field</title><link>https://www.infopathdev.com:443/forums/thread/70025.aspx</link><pubDate>Mon, 05 Sep 2011 17:42:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70025</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70025.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70025</wfw:commentRss><description>&lt;p&gt;Hi Ricky,&lt;/p&gt;&lt;p&gt;The reason you are able to send it is because your code doesn&amp;#39;t check. If you get rid of the code and just use out-of-box rules and submit data connection, it will prevent submits if data is missing. &lt;/p&gt;&lt;p&gt;The File-&amp;gt;Save event, on the other hand, allows saving even if the form has validation errors.&lt;/p&gt;&lt;p&gt;Remove the code. Add an email&amp;nbsp;submit data connection. Configure submit options. That should ne all that is required.&lt;/p&gt;</description></item><item><title>Able to Send report with blank 'Data Required' field</title><link>https://www.infopathdev.com:443/forums/thread/69893.aspx</link><pubDate>Wed, 31 Aug 2011 19:35:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69893</guid><dc:creator>Ricky</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69893.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69893</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi all,&lt;/p&gt;&lt;p&gt;I have a report created via Infopath 2003 with some Text Boxes that have the &amp;quot;Cannot be blank&amp;quot; boxes checked (I have even added some data validation that stated if the field is blank then show an error alert). However, when I send the form I just receive a message that states: &amp;quot;This form contain validation errors. Errors are marked with either a red asterisk (required fields) or a red, dashed border (invalid values). Do you still want to send it? Yes&amp;nbsp; No&amp;quot;&lt;/p&gt;&lt;p&gt;I don&amp;#39;t want the user to have the &amp;#39;yes&amp;#39; or &amp;#39;no&amp;#39; option. &lt;/p&gt;&lt;p&gt;I have two levels of submitting.&lt;/p&gt;&lt;p&gt;1) A &amp;#39;Submit&amp;#39; button with code to bring up an Outlook style envelope. (ctlSubmit function)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;2) In that envelope is a &amp;#39;Send&amp;#39; button beside the &amp;#39;To&amp;#39; field.&lt;/p&gt;&lt;p&gt;After step 2 is when I&amp;#39;m receiving the message.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;How can I make it so that the user must fill in the required fields? Any help is greatly appreciated.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is my &amp;#39;Submit&amp;#39; button code:&lt;/p&gt;&lt;p&gt;&amp;nbsp;function ctlSubmit::OnClick(eventObj)
&lt;/p&gt;&lt;p&gt;{
  try
   {
   var oEnvelope = Application.ActiveWindow.MailEnvelope;
   &lt;/p&gt;&lt;p&gt;var objReport = XDocument.DOM.selectSingleNode(&amp;quot;//my:myFields/my:report_name_blank&amp;quot;);
   &lt;/p&gt;&lt;p&gt;//var objRequestor = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:Request_By&amp;quot;);

   &lt;/p&gt;&lt;p&gt;oEnvelope.Subject = &amp;quot;Data Request - &amp;quot; + objReport.text;
   oEnvelope.To = &amp;quot;Me@myemailaddress.com&amp;quot;  
   &lt;/p&gt;&lt;p&gt;oEnvelope.Visible = true;	
   &lt;/p&gt;&lt;p&gt;}
   catch(ex)
&lt;/p&gt;&lt;p&gt;   {
     XDocument.UI.Alert(ex.description);
   }
}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>