<?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: Dynamic image in Report Template in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1070886#M35410</link>
    <description>&lt;P&gt;OK. Thanks! Hoping to see the fix for this in the next version. Take care, Carlos&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 09:20:41 GMT</pubDate>
    <dc:creator>CarlosSousaFerreira</dc:creator>
    <dc:date>2021-06-22T09:20:41Z</dc:date>
    <item>
      <title>Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1067994#M35220</link>
      <description>&lt;P&gt;I'm trying to include a dynamic image content in my report template using the value of one field to construct the image URL.&lt;BR /&gt;&lt;BR /&gt;It says in the documentation of the &lt;A href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm" target="_self"&gt;Report template&lt;/A&gt; that this could be achieved through the &lt;EM&gt;$image&lt;/EM&gt; keyword.&lt;/P&gt;&lt;P&gt;I've tried including a text like this in my template:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;${&lt;FONT color="#0000FF"&gt;$image&lt;/FONT&gt; | src:"&lt;A href="https://anyserver.com/dynamicpage.ashx?data=" target="_blank"&gt;https://anyserver.com/dynamicpage.ashx?data=&lt;/A&gt;&lt;FONT color="#0000FF"&gt;${my_field}&lt;/FONT&gt;"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But, when I try to load the template to the survey in survey123.arcgis.com, it raises an error:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#FF9900"&gt;Erro: An error occurred when checking the report template. The tag beginning with "${$image |" is unclosed. The tag beginning with "}"" is unopened.&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I guess it is not liking the field data I'm trying to add to the image URL, but how can I do this?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 16:47:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1067994#M35220</guid>
      <dc:creator>CarlosSousaFerreira</dc:creator>
      <dc:date>2021-06-14T16:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1068267#M35257</link>
      <description>&lt;P data-unlink="true"&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/398926"&gt;@CarlosSousaFerreira&lt;/a&gt;&amp;nbsp;while variable substitution in the &lt;EM&gt;src&lt;/EM&gt; string isn't supported in the way you've demonstrated above (i.e. for substituting part of the URL string), you can use the value from a question as the complete URL. If your survey is published from Survey123 Connect, one option would be to construct the full URL in a hidden text question in your survey, then use this as the image source. For example, if you concatenate&amp;nbsp;&lt;EM&gt;https://anyserver.com/dynamicpage.ashx?data=&lt;/EM&gt; &amp;nbsp;and &lt;EM&gt;${my_field}&lt;/EM&gt; in a hidden text question named &lt;EM&gt;image_url&lt;/EM&gt;, your report template syntax could then look like:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;${$image | src:image_url}&lt;/P&gt;&lt;P data-unlink="true"&gt;Hope this helps. Best, Jim&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 06:09:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1068267#M35257</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2021-06-15T06:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1068335#M35262</link>
      <description>&lt;P&gt;Thanks! This work like a charm!&lt;BR /&gt;However, it makes me create a new field for the&amp;nbsp;&lt;EM&gt;image_url&lt;/EM&gt; value. Is there any way to avoid this?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 11:45:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1068335#M35262</guid>
      <dc:creator>CarlosSousaFerreira</dc:creator>
      <dc:date>2021-06-15T11:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1069239#M35320</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/398926"&gt;@CarlosSousaFerreira&lt;/a&gt;&amp;nbsp; following discussion with colleagues, it turns out it is possible to concatenate strings in an expression in the report template itself, using the plus symbol (+). So your report template syntax could look something like:&lt;/P&gt;&lt;P data-unlink="true"&gt;${$image | src:"https://anyserver.com/dynamicpage.ashx?data=" + my_field}&lt;/P&gt;&lt;P&gt;Note that this method is not documented; we're still assessing the best way to implement this syntax, but this should hopefully be useful for now.&lt;/P&gt;&lt;P&gt;Also note that when calling a question value within an expression, you drop the ${} syntax from the question name. So in this case ${my_field} is entered as &lt;EM&gt;my_field&lt;/EM&gt;&amp;nbsp;when inside the ${$image} expression.&lt;/P&gt;&lt;P&gt;Best, Jim&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 07:00:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1069239#M35320</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2021-06-17T07:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1069776#M35353</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/354006"&gt;@Jim-Moore&lt;/a&gt;. Thank you so much for your help. That configuration works and it adds the value of&amp;nbsp;&lt;EM&gt;my_field&lt;/EM&gt; to the url, but it automatically removes the question mark (?), so it drives the url invalid. I've tried to substitute the question mark with&amp;nbsp;&amp;amp;#63; and it doesn't remove it, but it still gives me an error when printig the report, even though the generated url is valid:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CarlosSousaFerreira_0-1624013432662.png" style="width: 767px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16297iB76C7BDB4E1452FD/image-dimensions/767x117?v=v2" width="767" height="117" role="button" title="CarlosSousaFerreira_0-1624013432662.png" alt="CarlosSousaFerreira_0-1624013432662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 10:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1069776#M35353</guid>
      <dc:creator>CarlosSousaFerreira</dc:creator>
      <dc:date>2021-06-18T10:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1070837#M35406</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/398926"&gt;@CarlosSousaFerreira&lt;/a&gt;&amp;nbsp;thanks for raising this. On further discussion with colleagues, this is a known issue: a question mark (?) in an image source URL in the template will cause a print error. We're working on resolving this issue for the next release. Perhaps surprisingly, the issue does not occur if the question mark is in the answer to a question, so in the meantime, the workaround is to use the method &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1068267/highlight/true#M35257" target="_self"&gt;described above&lt;/A&gt;, i.e. concatenate the URL in a separate text question and then use&amp;nbsp;the question name as the image source. We'll endeavour to update this post with any developments. The fix should hopefully be included in our next beta website update &lt;A href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=2ahUKEwjb7vCkv6rxAhW1xDgGHbOWDekQFjABegQIBRAE&amp;amp;url=https%3A%2F%2Fearlyadopter.esri.com%2Fkey%2Ftnrtrffwjbt9nvqc&amp;amp;usg=AOvVaw2eLPKpoXrkRl_SFPxI0dec" target="_self"&gt;on EAC&lt;/A&gt; as well. Best, Jim&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 05:21:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1070837#M35406</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2021-06-22T05:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1070886#M35410</link>
      <description>&lt;P&gt;OK. Thanks! Hoping to see the fix for this in the next version. Take care, Carlos&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 09:20:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1070886#M35410</guid>
      <dc:creator>CarlosSousaFerreira</dc:creator>
      <dc:date>2021-06-22T09:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1085190#M36274</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/398926"&gt;@CarlosSousaFerreira&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As we rolled out a security update late last week, it includes the fix to this "question mark in the image src" issue. It should work as expected now on the Survey123 website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you still observe any issues, please let us know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 08:23:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1085190#M36274</guid>
      <dc:creator>ZhifangWang</dc:creator>
      <dc:date>2021-08-03T08:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1085203#M36275</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/109662"&gt;@ZhifangWang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Just tested and it now works using the format proposed by Jim-Moore: &lt;SPAN&gt;${$image | src:"&lt;A href="https://anyserver.com/dynamicpage.ashx?data=" target="_blank"&gt;https://anyserver.com/dynamicpage.ashx?data=&lt;/A&gt;" + my_field}&lt;/SPAN&gt;! This is great!&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 10:04:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1085203#M36275</guid>
      <dc:creator>CarlosSousaFerreira</dc:creator>
      <dc:date>2021-08-03T10:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1135287#M39857</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;Does this also work with other parameters? For example, I'd like to set the map scale to be dynamic within reports, based on another field, e.g.:&lt;/P&gt;&lt;P&gt;${Trail_Issue_Location|mapSettings: "949207afa6524b9889bdebaa6b84XXXX":Trail_Length * 1000 |size:200:200}&lt;/P&gt;&lt;P&gt;I've tried this out but can't get it to work...&lt;/P&gt;&lt;P&gt;Thanks, Darragh&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 03:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1135287#M39857</guid>
      <dc:creator>DarraghOSullivan</dc:creator>
      <dc:date>2022-01-20T03:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1135318#M39860</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/498005"&gt;@DarraghOSullivan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you can use a question value in an expression filter for a map question (and most other question's expressions too!). The syntax in your example looks good. What issues are you encountering? Does the report fail to generate (and if so, is there an error message)? If the report does print, is the map missing? Is the question a geopoint, geotrace, or geoshape?&lt;/P&gt;&lt;P&gt;Best, Jim&lt;/P&gt;&lt;P&gt;cc:&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/109662"&gt;@ZhifangWang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 06:03:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1135318#M39860</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2022-01-20T06:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic image in Report Template</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1135334#M39861</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/354006"&gt;@Jim-Moore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for confirming. I realised that the question value was not within the repeat where the map question was, but in the main survey. I had only tried once and assumed it was not a valid approach.&amp;nbsp; I have tried again and it works well. Thank you, Darragh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 07:51:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/dynamic-image-in-report-template/m-p/1135334#M39861</guid>
      <dc:creator>DarraghOSullivan</dc:creator>
      <dc:date>2022-01-20T07:51:33Z</dc:date>
    </item>
  </channel>
</rss>

