Hide [Update] [Delete] options that are displayed on an Image field on a form?

bbarnard
Kilo Contributor

I have added a reference field to an image from another table on a form. The image field (user image type) is displayed correctly however on the label for the field two link buttons are displayed [Update] & [Delete] to allow the user to modify or delete the selected image.

How can these link buttons be hidden or removed? I have tried UI Policies making the field Read-Only but that does not seem to work. I have also tried to find the id or name of the element to use a client script to hide these links, however the id for these elements appears to be a sys_id, but I cannot determine what is driving that sys_id to be able to predict it's value and script a way to hide it.

Thanks in advance for any help....

2 REPLIES 2

Chuck Tomasi
Tera Patron

Check your security settings (ACLs).

I did a quick test on sys_user.photo and found that it requires admin role to write to that field. If you don't have write permission (i.e. all you have is read-only), the Update and Delete links go away.

I would have thought your UI Policy would have done the trick, but without seeing it in detail, I cannot say. UI Policies are good for conditional form layout/behavior, but this sounds more like a job for straight forward security.


ACL's did it, thanks for you're help!