<?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: Conditional Formatting to hide or display a section</title><link>https://www.infopathdev.com:443/forums/thread/104290.aspx</link><pubDate>Fri, 09 Oct 2015 16:28:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104290</guid><dc:creator>PeteC</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104290</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I figured it out...because the rule was running on the different section instead of where I was originally placing the attachment, my path changed.&amp;nbsp; I should have had:&lt;/p&gt;&lt;p&gt;count(../my:MileageExpenses/my:expenseLineItem&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Conditional Formatting to hide or display a section</title><link>https://www.infopathdev.com:443/forums/thread/104289.aspx</link><pubDate>Fri, 09 Oct 2015 15:16:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104289</guid><dc:creator>PeteC</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104289.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104289</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m working on an expense form that requires receipts for expenses to be attached unless the expense is a parking meter, in which case no receipt is required.&amp;nbsp; The expense claims are in a repeating table, with a field for mileage, a field for expenses, and a checkbox to indicate if it was a parking meter expense.&amp;nbsp; The form is laid out as follows:&lt;/p&gt;&lt;p&gt;Group: MileageExpenses&lt;br /&gt;Repeating Table: expenseLineItem&lt;br /&gt;&amp;nbsp;&amp;nbsp; Field: Distance&lt;br /&gt;&amp;nbsp;&amp;nbsp; Field: Expenses&lt;br /&gt;&amp;nbsp;&amp;nbsp; Checkbox: meterParking&lt;br /&gt;&amp;nbsp;&amp;nbsp; hidden Field: subTotal (calculated as rate * distance + expenses)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I then have another section called Attachments.&amp;nbsp; I have a conditional format to hide this section, and the expression I defined as: count(../my:expenseLineItem/my:Expenses[. &amp;gt; 0]) = count(../my:expenseLineItem/my:meterParking[. &amp;gt; 0]) &lt;/p&gt;&lt;p&gt;It&amp;#39;s not working, and I&amp;#39;m not sure why not.&amp;nbsp; The logic seems to be fine: if the count of Expenses fields larger than zero equals the count of meterParking fields with a tick, then I&amp;#39;m assuming all Expenses are meters, and no attachments are required.&amp;nbsp; When I run the form, the section is hidden, and it doesn&amp;#39;t matter how many lines with expenses I add, the section never appears.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>