<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: To diable or hide a field in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/20360.aspx</link><pubDate>Mon, 04 Jun 2007 16:36:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20360</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20360.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20360</wfw:commentRss><description>Glad to have helped!</description></item><item><title>Re: To diable or hide a field in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/20286.aspx</link><pubDate>Thu, 31 May 2007 01:26:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20286</guid><dc:creator>Soham Bhatt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20286.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20286</wfw:commentRss><description>Thanks Greg</description></item><item><title>Re: To diable or hide a field in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/20269.aspx</link><pubDate>Wed, 30 May 2007 16:22:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20269</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20269</wfw:commentRss><description>&lt;p&gt;It could be an XPath issue. It all depends on where you are starting from. For example if your current position is my:group5, then you don&amp;#39;t need the &amp;quot;..&amp;quot; and would use the XPath count(preceding-sibling::my:group5), however, if you are on a child node of my:group5, then you would need the &amp;quot;..&amp;quot;.&lt;/p&gt;&lt;p&gt;Once the XPath is correct, the count should return a valid value. Keep in mind that preceding-sibling doesn&amp;#39;t account for the current node, so the returned count will be one less (i.e. if there&amp;#39;s only 1 row, the count will be 0, if there are 2 rows, the count for the second row will be 1, and the first row will be 0).&lt;/p&gt;&lt;p&gt;I understood that you wanted to always show the field if there was more than 1 row present (i.e. even show it in the first row). If that were the case then count() makes more sense, because you can go to the container node and count how many my:group5 fields there are total. So if you are currently at my:group5, you would use: count(../my:group5) &amp;gt; 1 as the condition.&lt;/p&gt;&lt;p&gt;However, now it sounds like you never want to show the field for the first row, but always thereafter. In that case you can use position() &amp;gt; 1 to determine when to show it... or if you want to get more complicated, you can just use preceding-sibling::my:group5 as a boolean condition because the first row will always report false and every row thereafter will report true.&lt;/p&gt;&lt;p&gt;Hope that helps.&lt;/p&gt;</description></item><item><title>Re: To diable or hide a field in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/20246.aspx</link><pubDate>Wed, 30 May 2007 01:48:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20246</guid><dc:creator>Soham Bhatt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20246.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20246</wfw:commentRss><description>i tried using the preceding sibling condition - count(../preceding-sibling::my:group5) but i&amp;#39;m confused to what condition should i use.....tried with expression but no luck. could you detail the step that i should take - thanks.</description></item><item><title>Re: To diable or hide a field in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/20223.aspx</link><pubDate>Tue, 29 May 2007 16:41:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20223</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20223.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20223</wfw:commentRss><description>In your conditional formatting, you would use the count() function to determine how many rows are present.</description></item><item><title>To diable or hide a field in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/20207.aspx</link><pubDate>Tue, 29 May 2007 00:13:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20207</guid><dc:creator>Soham Bhatt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20207.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=20207</wfw:commentRss><description>Is it possible to hide/disable a field in a repeating box and make a condition that if there is more than 1 row then show the respective field (in that row).
e.g. in my rpeating table i have 4 columns - name, position, cost centre and percentage.&lt;br&gt;

Percentage field by default can be disbale or hidden if there is only 1 row but if another row is inserted than the percentage field should be shown for user to input the value.</description></item></channel></rss>