<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hide Report Section Based on Two Separate Repeat counts in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/hide-report-section-based-on-two-separate-repeat/m-p/1528035#M58751</link>
    <description>&lt;P&gt;And in case it isn't immediately obvious, I:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Isolated both repeats to grab their own counts. This allows you fine control over logic.&lt;/LI&gt;&lt;LI&gt;Set up four logic paths for every possibility: Rpt1==0 and Rpt2==0; Rpt1&amp;gt;0 and Rpt2==0;&amp;nbsp;Rpt1==0 and Rpt2&amp;gt;0;&amp;nbsp;Rpt1&amp;gt;0 and Rpt2&amp;gt;0&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You can put what you need where you need it.&lt;/P&gt;&lt;P&gt;You can also drop logic paths if they aren't needed (e.g., you most likely don't need the Rpt1&amp;gt;0 and Rpt2&amp;gt;0 option).&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2024 17:30:58 GMT</pubDate>
    <dc:creator>abureaux</dc:creator>
    <dc:date>2024-08-27T17:30:58Z</dc:date>
    <item>
      <title>Hide Report Section Based on Two Separate Repeat counts</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/hide-report-section-based-on-two-separate-repeat/m-p/1527533#M58725</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a report that has two repeats per section.&amp;nbsp; If there are no records in either of the repeats feeding the section I would like to hide the section and add place holder text that says "No observed species."&amp;nbsp; The issue I am running into is that one repeat may have a record while the other does not.&amp;nbsp; In that case I would only show the one repeat that has the record.&amp;nbsp; Here is my current logic.&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;NPCS Species Present:&lt;/STRONG&gt; ${if (NPSCSpPresent_1 &amp;amp;&amp;amp; NPSCSpPresent_2 | getValue:"count")==0}No observed species.${/}&lt;/H2&gt;&lt;H2&gt;${if (NPSCSpPresent_1 || NPSCSpPresent_2 | getValue:"count")&amp;gt;0}&lt;/H2&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="623"&gt;&lt;P&gt;${#NPSCSpPresent_1}&lt;/P&gt;&lt;P&gt;${NPSCSp_1}&lt;/P&gt;&lt;P&gt;${/}&lt;/P&gt;&lt;P&gt;${#NPSCSpPresent_2}&lt;/P&gt;&lt;P&gt;${NPSCSp_2}&lt;/P&gt;&lt;P&gt;${OtherNPSC}&lt;/P&gt;&lt;P&gt;${/}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="623"&gt;&lt;H3&gt;NPCS Dominant Species:&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;${SpDomList_3| appearance:"multiline"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="623"&gt;&lt;H3&gt;NPCS Notes:&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;${NPCSNote_3| appearance:"multiline"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;${/}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently the logic fails to show any questions from either of the repeats.&amp;nbsp; Any ideas on how to hide a section in a report based on if one of the repeats has a record?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to all that respond.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 22:58:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/hide-report-section-based-on-two-separate-repeat/m-p/1527533#M58725</guid>
      <dc:creator>icf_Eric_Link</dc:creator>
      <dc:date>2024-08-26T22:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Report Section Based on Two Separate Repeat counts</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/hide-report-section-based-on-two-separate-repeat/m-p/1528034#M58750</link>
      <description>&lt;P&gt;You already have most of the logic there.&lt;/P&gt;&lt;P&gt;Have you tried something like this yet?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;${if (rep1 | getValue:"count")==0 &amp;amp;&amp;amp; (rep2 | getValue:"count")==0}No observed species.${/}${if (rep1 | getValue:"count")&amp;gt;0 &amp;amp;&amp;amp; (rep2 | getValue:"count")==0}rep1.${/}${if (rep1 | getValue:"count")==0 &amp;amp;&amp;amp; (rep2 | getValue:"count")&amp;gt;0}rep2.${/}${if (rep1 | getValue:"count")&amp;gt;0 &amp;amp;&amp;amp; (rep2 | getValue:"count")&amp;gt;0}rep1 + rep2.${/}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 17:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/hide-report-section-based-on-two-separate-repeat/m-p/1528034#M58750</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-27T17:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Report Section Based on Two Separate Repeat counts</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/hide-report-section-based-on-two-separate-repeat/m-p/1528035#M58751</link>
      <description>&lt;P&gt;And in case it isn't immediately obvious, I:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Isolated both repeats to grab their own counts. This allows you fine control over logic.&lt;/LI&gt;&lt;LI&gt;Set up four logic paths for every possibility: Rpt1==0 and Rpt2==0; Rpt1&amp;gt;0 and Rpt2==0;&amp;nbsp;Rpt1==0 and Rpt2&amp;gt;0;&amp;nbsp;Rpt1&amp;gt;0 and Rpt2&amp;gt;0&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You can put what you need where you need it.&lt;/P&gt;&lt;P&gt;You can also drop logic paths if they aren't needed (e.g., you most likely don't need the Rpt1&amp;gt;0 and Rpt2&amp;gt;0 option).&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 17:30:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/hide-report-section-based-on-two-separate-repeat/m-p/1528035#M58751</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-27T17:30:58Z</dc:date>
    </item>
  </channel>
</rss>

