<?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: How to set fields to be required when they are displayed on one view but not required when they are not displayed/used on another view?</title><link>https://www.infopathdev.com:443/forums/thread/82603.aspx</link><pubDate>Wed, 12 Sep 2012 22:15:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82603</guid><dc:creator>DC Forms</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82603.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=82603</wfw:commentRss><description>&lt;p&gt;Rules are run when the form is opened to determine which view is displayed. I could go through and add the same conditions to the validation rules that I use to determine what views are displayed, but it would easier to use separate forms.&lt;/p&gt;</description></item><item><title>Re: How to set fields to be required when they are displayed on one view but not required when they are not displayed/used on another view?</title><link>https://www.infopathdev.com:443/forums/thread/82597.aspx</link><pubDate>Wed, 12 Sep 2012 21:22:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82597</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82597.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=82597</wfw:commentRss><description>&lt;p&gt;Validation rules are specific to the field - not the view. Thus, you may need a way to know when field 2 is required and add custom validation to the field that takes that into account. You can track view switches with qRules - not sure if you will know what view your user will be in? Or do they click a button or something to get to the second view?&lt;/p&gt;
&lt;p&gt;In InfoPath, a view is simply a way of displaying data - validation cares only about the data (XML), not the view or controls. Does that make sense?&lt;/p&gt;</description></item><item><title>How to set fields to be required when they are displayed on one view but not required when they are not displayed/used on another view?</title><link>https://www.infopathdev.com:443/forums/thread/82595.aspx</link><pubDate>Wed, 12 Sep 2012 20:59:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82595</guid><dc:creator>DC Forms</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82595.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=82595</wfw:commentRss><description>&lt;p&gt;My form has some simple business logic that determines what view is displayed to users. Depending on the business logic, and hence the view, some fields are displayed and required. I thought that the validation rules were exclusive to the view, but it appears they cross views. I am unsure, because I have seen a behavior where rules appear exclusive to the view in which they are applied. (InfoPath 2010)&lt;/p&gt;&lt;p&gt;This causes a problem because a field that is required on one view but not a second one prevents the form from being submitted using the second view.&lt;/p&gt;&lt;p&gt;View A&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Field 1 is displayed and required using a validation rule (the field properties &lt;em&gt;Cannot be blank&lt;/em&gt; attribute is unchecked)&lt;/li&gt;&lt;li&gt;Field 2 is not displayed (because it is&amp;nbsp;not required and not relevant)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;View B&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Field 1 is displayed and required using a validation rule&lt;/li&gt;&lt;li&gt;Field 2 is displayed and required using a validation rule&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Issue: View A cannot be submitted because no value has been entered for Field 2&lt;/p&gt;&lt;p&gt;Is this possible, or do I need separate forms?&lt;/p&gt;</description></item></channel></rss>