<?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: Adding customize error message to image link if the associated link has no image or document in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/adding-customize-error-message-to-image-link-if/m-p/1097854#M42152</link>
    <description>&lt;P&gt;Hi Sunita,&lt;/P&gt;&lt;P&gt;I'm assuming that you have a field that contains urls to your documents or images.&lt;/P&gt;&lt;P&gt;One possibility would be to work out which records do not have documents and images and then create a web page with your custom message that can be displayed for them instead.&lt;/P&gt;&lt;P&gt;It is not easy to do this 'on the fly' as the detecting a 404 is an asynchronous activity, which is hard to detect with things like Arcade expressions.&lt;/P&gt;&lt;P&gt;So, this is something you will likely have to pre-calculate. You could use the method I suggested earlier and create a custom web page for 'empty' document/image records. You would then place that custom web&amp;nbsp; page in the folder with the appropriate id in its name so that the link will pick it up (hence no 404).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, there may be a way to tell which records do not have associated documents/images from values in other attributes? If so, you could potentially use some Arcade to call your custom web page instead of a dead link.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 23:48:33 GMT</pubDate>
    <dc:creator>mdonnelly</dc:creator>
    <dc:date>2021-09-13T23:48:33Z</dc:date>
    <item>
      <title>Adding customize error message to image link if the associated link has no image or document</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/adding-customize-error-message-to-image-link-if/m-p/1097673#M42143</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a folder in the server machine that has all the additional pdf documents associated with a few assets. I have no problem displaying the document either as a link or as an image when this document exists in the folder. But the problem is not all assets have additional documents and when I click the link of those assets, I get a server error 404 message. Is there any way I can customize the message showing 'No Additional document available for this asset' instead of the default message? If yes, where should I add that?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SunitaKhanal_3-1631547354053.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22860i9A13586AAF93EBF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SunitaKhanal_3-1631547354053.png" alt="SunitaKhanal_3-1631547354053.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SunitaKhanal_1-1631546951039.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22858iBB19707C5C43EDB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SunitaKhanal_1-1631546951039.png" alt="SunitaKhanal_1-1631546951039.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your time and suggestion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sunita&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:19:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/adding-customize-error-message-to-image-link-if/m-p/1097673#M42143</guid>
      <dc:creator>SunitaKhanal</dc:creator>
      <dc:date>2021-09-13T16:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding customize error message to image link if the associated link has no image or document</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/adding-customize-error-message-to-image-link-if/m-p/1097854#M42152</link>
      <description>&lt;P&gt;Hi Sunita,&lt;/P&gt;&lt;P&gt;I'm assuming that you have a field that contains urls to your documents or images.&lt;/P&gt;&lt;P&gt;One possibility would be to work out which records do not have documents and images and then create a web page with your custom message that can be displayed for them instead.&lt;/P&gt;&lt;P&gt;It is not easy to do this 'on the fly' as the detecting a 404 is an asynchronous activity, which is hard to detect with things like Arcade expressions.&lt;/P&gt;&lt;P&gt;So, this is something you will likely have to pre-calculate. You could use the method I suggested earlier and create a custom web page for 'empty' document/image records. You would then place that custom web&amp;nbsp; page in the folder with the appropriate id in its name so that the link will pick it up (hence no 404).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, there may be a way to tell which records do not have associated documents/images from values in other attributes? If so, you could potentially use some Arcade to call your custom web page instead of a dead link.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 23:48:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/adding-customize-error-message-to-image-link-if/m-p/1097854#M42152</guid>
      <dc:creator>mdonnelly</dc:creator>
      <dc:date>2021-09-13T23:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding customize error message to image link if the associated link has no image or document</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/adding-customize-error-message-to-image-link-if/m-p/1098194#M42164</link>
      <description>&lt;P&gt;Hello Mark,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for taking the time to respond to my question. I actually do not have a field in my data to store the URL and instead, images/documents are uploaded to a folder on our server with and the link is then inserted into the pop-up. It is more like one-to-one relation and all assets that don't find an image/document throughs 404 error. I like the idea of creating a custom message for all assets that do not have images or documents. I am quite not sure how to do it, but I would like to explore that. I will post the solution if I figure out how.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sunita&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 19:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/adding-customize-error-message-to-image-link-if/m-p/1098194#M42164</guid>
      <dc:creator>SunitaKhanal</dc:creator>
      <dc:date>2021-09-14T19:28:51Z</dc:date>
    </item>
  </channel>
</rss>

