<?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>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Making a field required based on which view loads up</title><link>https://www.infopathdev.com:443/forums/thread/23516.aspx</link><pubDate>Mon, 08 Oct 2007 11:59:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23516</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=23516</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I would do and do much as Clay suggests and use a field to control what view is shown by setting rules from the &amp;#39;Tools&amp;#39;, &amp;#39;Form Options&amp;#39;, &amp;#39;Save and Save As&amp;#39; and click &amp;#39;Rules&amp;#39; to set set field1 to A for first view, B for second view and so on.&amp;nbsp; This way you use validation linked with your workflow field on the field you want filled in&amp;nbsp;on say view 2.&lt;/p&gt;
&lt;p&gt;So If @Workflow = B and Field 1 is blank the display a dialogue box.&lt;/p&gt;
&lt;p&gt;I hope this helps&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;</description></item><item><title>Re: Making a field required based on which view loads up</title><link>https://www.infopathdev.com:443/forums/thread/23127.aspx</link><pubDate>Tue, 18 Sep 2007 14:33:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23127</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23127.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=23127</wfw:commentRss><description>&lt;p&gt;You would have to leverage how you control which view loads or create a field to track the current view.&amp;nbsp; Then you would have to use rules to make sure the field was validated before submit or when data was entered into it.&amp;nbsp; Probably both times just to be sure.&lt;/p&gt;</description></item><item><title>Making a field required based on which view loads up</title><link>https://www.infopathdev.com:443/forums/thread/23102.aspx</link><pubDate>Mon, 17 Sep 2007 13:57:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23102</guid><dc:creator>ninjaben</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23102.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=23102</wfw:commentRss><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;now i know in code how to make a field required, what im finding annoying is a way to chack on form load if it is a cirtain view, if it is then i need an event, is there anyway in code on the form load event to check if it is e.g. view 2?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;</description></item></channel></rss>