Survey - The image on the field type "Image Scale" is not shown to not logged-in users when Public

Walmag Castro S
Tera Guru

Hello, everyone.

Please, I'm facing a problem: I created a Survey, and all the questions are field type "Image Scale". To logged users, the questions are shown correctly, on ESC.

However, to not logged-in users the images look empty (as shown bellow).

I apreciate any sugestions.

Captura de ecrã 2024-08-06 120219.png

1 ACCEPTED SOLUTION

Walmag Castro S
Tera Guru

Hello, everyone. Thank you for your reply.
I discovered that a custom field was created in the sys_attachment table, to check whether the attachment should be shown or not according to the user's role.

Once again, thank you for your time and availability.

View solution in original post

5 REPLIES 5

Musab Rasheed
Tera Sage
Tera Sage

Check this out.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0715925

Please hit like and mark my response as correct if that helps
Regards,
Musab

Thanks for the reply, Rasheed.
But I don't think it applies to my case, because I used the Image Scale type, and in the definition of the metric, I use the fields for uploading the image. As shown:

Captura de ecrã 2024-08-06 133406.png

Captura de ecrã 2024-08-06 133157.png

  

Rajesh Chopade1
Mega Sage

Hi @Walmag Castro S 

Looks issue is related to image access permissions.

Make sure that the images are not restricted by any ACL (Access Control List) rules.

Images should be publicly accessible.

 

i hope my answer helps you to resolve your issue, if yes mark my answer helpful & correct.

THANK YOU

rajesh chopade

Hello, Rajesh.
I saw that there is ACL for table sys_attachment, where images are stored. However, there is an ACL with role "public" as a condition that evaluates if the table_name is "asmt_metric".
I noticed that
1- when inserting the image via the Asmt Metric Definition record, as shown above, the table of attachments shows table_name = "ZZ_YYasmt_metric_definition"
2 - when inserting the image in the question record, the attachments table shows table_name = "asmt_metric"
3 - when inserting the image in the Survey Definition, the table of attachments shows table_name = "asmt_metric_type".

In any case, even when evaluating TRUE in the ACL, the image still doesn't appear for non-logged-in users.