<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Trouble with validation and hidden sections</title><link>https://www.infopathdev.com:443/forums/thread/79322.aspx</link><pubDate>Thu, 07 Jun 2012 11:39:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79322</guid><dc:creator>joeyjackson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79322.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=79322</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Trouble with validation and hidden sections</title><link>https://www.infopathdev.com:443/forums/thread/79321.aspx</link><pubDate>Thu, 07 Jun 2012 11:38:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79321</guid><dc:creator>joeyjackson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79321.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=79321</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not sure how to best describe this, so here is some background. &lt;/p&gt;
&lt;p&gt;I have a form published to our sharepoint server, which is an evaluation form for call center agents. There are multiple criteria, which all have the same three options (Objective Met, Not Met, and Not Applicable). based on the option selected a value is assigned (via rules) to two text boxes, bound to fields; possible score and total score, as well as a comments text box. &lt;/p&gt;
&lt;p&gt;For each evaluation criteria I have a table with those options and a group with those fields in them. This logic all works just fine. &lt;/p&gt;
&lt;p&gt;In order to be able to adjust the value of each criteria or the content, instead of being coded right into the form, the sections where the evaluation criteria name and details are &amp;#39;Calculated Values&amp;#39; controls and pull the information from a sharepoint list. To accomplish this I have a group containing my 4 fields for each criteria, and a table for each criteria (so each is laid out identically), it pulls the name and criteria value from the sharepoint list when the form loads. This all works just fine. &lt;/p&gt;
&lt;p&gt;Here&amp;#39;s where it gets a bit complicated: I wanted to make it so management can add criteria to the list, simply by adding items to the sharepoint list. To do this, I set up each table (criteria) in it&amp;#39;s own &amp;#39;section&amp;#39;, for which I use a formatting rule to hide that section if there is not an item with that ID# in the sharepoint list. There are now 20 groups with 4 fields each and 20 sections that hide if there is no information in the list for them. This also works great, except when I apply the &amp;#39;field cannot be blank option&amp;#39; to the selections, so the user&amp;nbsp;don&amp;#39;t miss an answer, it expects the hidden sections to be answered as well. &lt;/p&gt;
&lt;p&gt;So here&amp;#39;s where I&amp;#39;m stuck. If I hide the field, it still wants an answer. I discovered if I select &amp;#39;do not include this section in the form by default&amp;#39;, then it works the way I want. but that&amp;#39;s not ideal because it requires modification to the form to change the criteria. What I&amp;#39;m looking for is a way to programatically include or exclude a section (not just hide it), based on whether a row exists in a list. I&amp;#39;ve only been able to hide it. I tired just adding a default value to the fields and then applying a rule that if it&amp;#39;s not above that number to show a message, but it doesn&amp;#39;t seem to prevent submission, or the rule is not running - I can&amp;#39;t get that option to work. &lt;/p&gt;
&lt;p&gt;Sorry it&amp;#39;s so lengthy, I just wanted to be a clear as I could. &lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item></channel></rss>