<?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: Help!  How to accomplish multiple field validation!</title><link>https://www.infopathdev.com:443/forums/thread/25713.aspx</link><pubDate>Wed, 16 Jan 2008 23:11:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25713</guid><dc:creator>keeter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25713.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25713</wfw:commentRss><description>&lt;p&gt;This is the answer... found in a different post... by Davidair&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;font face="Calibri" size="3"&gt;I think I know why. When your form is running in the browser, your code (aka business logic) gets executed on the server-side when data gets sent to the server (this is also known as a postback).&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;By default, Forms Server figures out by itself when to do a postback. However, this is not the case for changed events.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;To verify my claim, make a change to your dropdown then click the button. Both pieces of code will end up running.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;In order to fix this behaviour, bring up the dropdown properties, select the &amp;quot;Browser forms&amp;quot; tab and change the postback settings to &amp;quot;Always&amp;quot; instead of &amp;quot;Only when necessary&amp;quot;.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;Good luck!&lt;/font&gt;&amp;quot;&lt;/p&gt;</description></item><item><title>Re: Help!  How to accomplish multiple field validation!</title><link>https://www.infopathdev.com:443/forums/thread/25711.aspx</link><pubDate>Wed, 16 Jan 2008 21:58:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25711</guid><dc:creator>keeter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25711.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25711</wfw:commentRss><description>&lt;p&gt;Thanks.&amp;nbsp; I&amp;#39;ve gotten a similar (less complicated) method to work correctly in &amp;quot;preview&amp;quot; mode.&amp;nbsp; However the _changed event doesn&amp;#39;t get triggered when the field in question loses focus when the code is on Forms Server.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Is there a way to force a _changed event when the code sits on Forms Server?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;</description></item><item><title>Re: Help!  How to accomplish multiple field validation!</title><link>https://www.infopathdev.com:443/forums/thread/25709.aspx</link><pubDate>Wed, 16 Jan 2008 21:54:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25709</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25709.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25709</wfw:commentRss><description>&lt;p&gt;Welcome to the forum.&lt;/p&gt;
&lt;p&gt;You can add validation to the field in its properties, which will offload some of this. Does standard validation not work for you?&lt;/p&gt;
&lt;p&gt;You could also set up some dedicated fields for custom validation, each one monitor a set of fields and return true or count the number of fields that&amp;nbsp;meet validation and then&amp;nbsp;use these for conditionals at time of submit.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Help!  How to accomplish multiple field validation!</title><link>https://www.infopathdev.com:443/forums/thread/25701.aspx</link><pubDate>Wed, 16 Jan 2008 16:05:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25701</guid><dc:creator>keeter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25701.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=25701</wfw:commentRss><description>&lt;p&gt;Ok, first off this is somewhat complicated to explain.&amp;nbsp; But I&amp;#39;ll give it a shot.&amp;nbsp; I&amp;#39;m develpoing a set of forms (each will behave the same, but have different fields.)&amp;nbsp; On the forms there is a submit button.&amp;nbsp; When the button is clicked, in the rules section of the button, we 1) Set a status field to submitted, 2) Switch views to an email that gets sent 3) Submit using a data connection 4) Switch views to a &amp;quot;form submitted view, and then 5) Submit the form to the appropriate SharePoint library.&lt;/p&gt;
&lt;p&gt;The aforementioned process works well EXCEPT, if you have to validate fields (make sure they have an entry) before you submit.&amp;nbsp; I&amp;#39;d thought of setting a condition on the rules, but that only allows you to set 5 conditions, and I have to make certain that more than 5 fields have data in them.&amp;nbsp; So my next attempt was to try to do the above programmatically in vb.&amp;nbsp; However InfoPath prevents you from switching views more than once programmatically.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My main goals are this (but can&amp;#39;t seem to accomplish them...)&lt;/p&gt;
&lt;p&gt;1) Verify certain fields have data in them before submit is allowed.&lt;/p&gt;
&lt;p&gt;2) Send an email to a supervisor alerting them a form has been submitted.&lt;/p&gt;
&lt;p&gt;3) Submit the form.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any help you may be able to afford would be&amp;nbsp;GREATLY appreciated!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>