<?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: Validation rule</title><link>https://www.infopathdev.com:443/forums/thread/92141.aspx</link><pubDate>Mon, 12 Aug 2013 14:04:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92141</guid><dc:creator>Newbie 2013</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92141.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=92141</wfw:commentRss><description>Thanks Patrick. That was good information and will consider for my next form.</description></item><item><title>Re: Validation rule</title><link>https://www.infopathdev.com:443/forums/thread/92094.aspx</link><pubDate>Sun, 11 Aug 2013 19:55:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92094</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92094.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=92094</wfw:commentRss><description>&lt;p&gt;Hi Newbie 2013 and welcome to InfoPath!&lt;/p&gt;
&lt;p&gt;Browser forms don&amp;#39;t&amp;nbsp;support popup alerts. So, you have to do it in your form. &lt;/p&gt;
&lt;p&gt;So, the&amp;nbsp;submit button is not a good place to put validation since there is no way to alert the user.&lt;/p&gt;
&lt;p&gt;Rather, I suggest adding a formatting rule to your Submit button that disables it if the condition which you are validating is not met.&lt;/p&gt;
&lt;p&gt;In addition, I would add an optional section to your view near the Submit button that has text in it.&lt;/p&gt;
&lt;p&gt;For example, you could simply display: &amp;quot;Invalid input, please check your form fields&amp;quot; but you probably want to be more specific based on your validation criteria.&lt;/p&gt;
&lt;p&gt;This section has a formatting rule that hides it if the validation criteria are met (opposite of formatting rule for button).&lt;/p&gt;
&lt;p&gt;This way, the user can see that the form is invalid and why when they attempt to submit and you disable submit button anyway, so they don&amp;#39;t take the needless action. &lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Validation rule</title><link>https://www.infopathdev.com:443/forums/thread/91990.aspx</link><pubDate>Wed, 07 Aug 2013 14:59:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91990</guid><dc:creator>Newbie 2013</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91990.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91990</wfw:commentRss><description>&lt;p&gt;Hi everybody,&lt;/p&gt;&lt;p&gt;I am quite new at this and need to understand how I can use validation rules on custom submit buttons (created on form) so that the user gets a similiar message when the form is incorrectly filled out. As&amp;nbsp;an example when using the&amp;nbsp;default Form button - &amp;quot;The form cannot be submitted because of an error&amp;quot;. Any&amp;nbsp;information would be greatly appreciated!&lt;/p&gt;&lt;p&gt;Sorry forgot to include: &lt;/p&gt;&lt;p&gt;Using InfoPath 2010 and SharePoint 2010 on a web based Infopath form.&lt;/p&gt;&lt;p&gt;I am also making the Submit do the following:&lt;/p&gt;&lt;p&gt;1) Make button&amp;nbsp;&amp;quot;hidden&amp;quot; after 1st submit&lt;/p&gt;&lt;p&gt;2) Add document name to field &amp;quot;document field&amp;quot;&lt;/p&gt;&lt;p&gt;3) Submit&lt;/p&gt;&lt;p&gt;So when the user clicks for the first time the submit button hides, wheither the form is filled out correctly or not. Then a &amp;quot;Save&amp;quot; button appears and when user selects &amp;quot;Save&amp;quot; it switches to another view showing the document was saved correctly.&lt;/p&gt;&lt;p&gt;Thanks for any assistance.&lt;/p&gt;</description></item></channel></rss>