<?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: Documentation around - Conditional elements in report templates in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/documentation-around-conditional-elements-in/m-p/847403#M22386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geethaka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write the documentation for Survey123, so I'm the one that has to apologize here. Unfortunately, for multiple reasons, the documentation for conditional statements didn't make it in time for the 2.8 release. The full documentation will be in the next release, but here's a grab that should hopefully get you started:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Elements of a report can be shown or hidden conditionally through the use of if statements. The if statement can be used through entering an expression into the starting placeholder &lt;SPAN class=""&gt;${if expression}&lt;/SPAN&gt;, with &lt;SPAN class=""&gt;${/}&lt;/SPAN&gt; denoting the end of the conditional segment. Some examples of if statements that could be used to hide parts of a report are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;${if photo1}&lt;/SPAN&gt; would display the section only if the photo1 question has been answered.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;${if integer1&amp;gt;0}&lt;/SPAN&gt; would display the section only if the answer to the integer1 question was a positive number.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;${if ((geopoint | getValue:"x")&amp;gt;0)}&lt;/SPAN&gt; would display the section only if the geopoint is in the Northern Hemisphere.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2018 00:07:28 GMT</pubDate>
    <dc:creator>ClaireProctor</dc:creator>
    <dc:date>2018-06-15T00:07:28Z</dc:date>
    <item>
      <title>Documentation around - Conditional elements in report templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/documentation-around-conditional-elements-in/m-p/847402#M22385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latest Survey123 update mentions that &lt;A href="http://doc.arcgis.com/en/survey123/reference/whatsnewsurvey123.htm#ESRI_SECTION1_AA9F704E4809471DBCC279320B6C93D2"&gt;Report templates now support conditional elements to show or hide content depending on answers in the survey&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;But, I haven't been able to find any documentation around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone point me in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 23:43:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/documentation-around-conditional-elements-in/m-p/847402#M22385</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-06-14T23:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation around - Conditional elements in report templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/documentation-around-conditional-elements-in/m-p/847403#M22386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geethaka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write the documentation for Survey123, so I'm the one that has to apologize here. Unfortunately, for multiple reasons, the documentation for conditional statements didn't make it in time for the 2.8 release. The full documentation will be in the next release, but here's a grab that should hopefully get you started:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Elements of a report can be shown or hidden conditionally through the use of if statements. The if statement can be used through entering an expression into the starting placeholder &lt;SPAN class=""&gt;${if expression}&lt;/SPAN&gt;, with &lt;SPAN class=""&gt;${/}&lt;/SPAN&gt; denoting the end of the conditional segment. Some examples of if statements that could be used to hide parts of a report are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;${if photo1}&lt;/SPAN&gt; would display the section only if the photo1 question has been answered.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;${if integer1&amp;gt;0}&lt;/SPAN&gt; would display the section only if the answer to the integer1 question was a positive number.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;${if ((geopoint | getValue:"x")&amp;gt;0)}&lt;/SPAN&gt; would display the section only if the geopoint is in the Northern Hemisphere.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 00:07:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/documentation-around-conditional-elements-in/m-p/847403#M22386</guid>
      <dc:creator>ClaireProctor</dc:creator>
      <dc:date>2018-06-15T00:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation around - Conditional elements in report templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/documentation-around-conditional-elements-in/m-p/847404#M22387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is GREAT &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/290643"&gt;Claire Proctor&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 00:40:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/documentation-around-conditional-elements-in/m-p/847404#M22387</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-06-15T00:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation around - Conditional elements in report templates</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/documentation-around-conditional-elements-in/m-p/847405#M22388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Claire,&lt;/P&gt;&lt;P&gt;Any new documentation yet on this subject?&lt;/P&gt;&lt;P&gt;Specifically, I'm looking for the correct syntax for the opposite of:&lt;/P&gt;&lt;UL style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;${if photo1}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;would display the section only if the photo1 question has been answered.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.... so what's the expression to display the section only if the photo 1 question has &lt;STRONG&gt;NOT&lt;/STRONG&gt; been answered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David Booth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 18:27:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/documentation-around-conditional-elements-in/m-p/847405#M22388</guid>
      <dc:creator>DavidBooth</dc:creator>
      <dc:date>2019-06-20T18:27:46Z</dc:date>
    </item>
  </channel>
</rss>

