Dynamic image in Report Template

2553
11
Jump to solution
06-14-2021 09:47 AM
CarlosSousaFerreira
New Contributor III

I'm trying to include a dynamic image content in my report template using the value of one field to construct the image URL.

It says in the documentation of the Report template that this could be achieved through the $image keyword.

I've tried including a text like this in my template:

${$image | src:"https://anyserver.com/dynamicpage.ashx?data=${my_field}"}

But, when I try to load the template to the survey in survey123.arcgis.com, it raises an error:
Erro: An error occurred when checking the report template. The tag beginning with "${$image |" is unclosed. The tag beginning with "}"" is unopened.

I guess it is not liking the field data I'm trying to add to the image URL, but how can I do this?

Tags (2)
0 Kudos
11 Replies
ZhifangWang
Esri Regular Contributor

Hi @CarlosSousaFerreira ,

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.

 

If you still observe any issues, please let us know.

 

CarlosSousaFerreira
New Contributor III

Hi @ZhifangWang ,

Just tested and it now works using the format proposed by Jim-Moore: ${$image | src:"https://anyserver.com/dynamicpage.ashx?data=" + my_field}! This is great!

Many thanks!

Best regards,

Carlos

0 Kudos