<?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 S123 Report Template | Conditionally render text if photo attachment not present in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-report-template-conditionally-render-text-if/m-p/1536457#M58995</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;Been racking my brain and trying different approaches but still don't have the solution I'm looking for and wondering if anybody found a workaround. Basically within a S123 Word report template, I would like to conditionally render some text ("No Photos Included) in a table row when a photo attachment isn't included with that survey record.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since attachments are stored differently (nested table), I wasn't having any luck with the usual IF conditional statements in the report. Basically, was trying to use the count function and if equal to "0", then render the text.&lt;/P&gt;&lt;P&gt;In testing, I used this attribute to get the count of photos and this returns the correct result of "0".&lt;/P&gt;&lt;P&gt;${site_photo_1 | getValue:"count"}&lt;/P&gt;&lt;P&gt;But then when I expand on this to include the conditional statement, it's not working correctly. Here is what I was using:&lt;/P&gt;&lt;P&gt;${ if site_photo_4 | getValue:"count" == 0}, No Photos Included ${/}&lt;BR /&gt;&lt;BR /&gt;I've also tried other variations like:&lt;/P&gt;&lt;P&gt;${ if site_photo_4 == ""}, No Photos Included ${/} and others but still can't get the text to render the text correctly.&lt;/P&gt;&lt;P&gt;Anybody encountered this before or have a solution that works for them? Thanks so much!&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 15:16:59 GMT</pubDate>
    <dc:creator>KyleWeaver</dc:creator>
    <dc:date>2024-09-09T15:16:59Z</dc:date>
    <item>
      <title>S123 Report Template | Conditionally render text if photo attachment not present</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-report-template-conditionally-render-text-if/m-p/1536457#M58995</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;Been racking my brain and trying different approaches but still don't have the solution I'm looking for and wondering if anybody found a workaround. Basically within a S123 Word report template, I would like to conditionally render some text ("No Photos Included) in a table row when a photo attachment isn't included with that survey record.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since attachments are stored differently (nested table), I wasn't having any luck with the usual IF conditional statements in the report. Basically, was trying to use the count function and if equal to "0", then render the text.&lt;/P&gt;&lt;P&gt;In testing, I used this attribute to get the count of photos and this returns the correct result of "0".&lt;/P&gt;&lt;P&gt;${site_photo_1 | getValue:"count"}&lt;/P&gt;&lt;P&gt;But then when I expand on this to include the conditional statement, it's not working correctly. Here is what I was using:&lt;/P&gt;&lt;P&gt;${ if site_photo_4 | getValue:"count" == 0}, No Photos Included ${/}&lt;BR /&gt;&lt;BR /&gt;I've also tried other variations like:&lt;/P&gt;&lt;P&gt;${ if site_photo_4 == ""}, No Photos Included ${/} and others but still can't get the text to render the text correctly.&lt;/P&gt;&lt;P&gt;Anybody encountered this before or have a solution that works for them? Thanks so much!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 15:16:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/s123-report-template-conditionally-render-text-if/m-p/1536457#M58995</guid>
      <dc:creator>KyleWeaver</dc:creator>
      <dc:date>2024-09-09T15:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: S123 Report Template | Conditionally render text if photo attachment not present</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-report-template-conditionally-render-text-if/m-p/1536564#M59000</link>
      <description>&lt;P&gt;if${!(site_photo_4)}No Photos Included.${/}&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 18:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/s123-report-template-conditionally-render-text-if/m-p/1536564#M59000</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-09-09T18:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: S123 Report Template | Conditionally render text if photo attachment not present</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-report-template-conditionally-render-text-if/m-p/1536577#M59004</link>
      <description>&lt;P&gt;Thanks so much for the response! I just had to modify the syntax slightly to get it to work (just had to switch the variable $ sign and incorporate the "if" statement within the brackets but it worked!! Final syntax:&lt;/P&gt;&lt;P&gt;${if !(site_photo_4)}No Photo Included For Item Scope Number.${/}&lt;/P&gt;&lt;P&gt;I really appreciate it!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kyle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 18:59:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/s123-report-template-conditionally-render-text-if/m-p/1536577#M59004</guid>
      <dc:creator>KyleWeaver</dc:creator>
      <dc:date>2024-09-09T18:59:24Z</dc:date>
    </item>
  </channel>
</rss>

