How to hide attachment icon of catalog item in service portal

sumitjumale
Kilo Contributor

I want to hide attachment icon for specific catalog item in "Service Portal" view.

Note: I am able to hide on normal catalog item view but not in "Service Portal" The code which i have written is working on catalog item view but its not

working on "Service Portal" view even i have used "UI Type = Bothe" in client script.

find_real_file.png

Please suggest.

Regards,

Sumit

21 REPLIES 21

The issue I've found with this solution and others is that it works great when the form is first loaded, but if you trigger the Mandatory check (any Mandatory field is empty when you hit Submit) the paperclip returns when the page 'reloads'.

UI Policy has the same issue as an onLoad Client Script. 

Was trying to determine if I could leverage an onChange Client Script but that hasn't gotten me anywhere. 

This 'Macro' variable fails the same way:  https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0717941

 

I haven't come up with a workaround as of yet - will update this post if I do.

H S B
Giga Guru

Simply open your catalog item under 'Maintain Item' module & under "Portal Settings', check 'Hide Attachment' -

HSB_0-1705647315886.png

 

 

It works 100% so shouldn't be an issue.

Do mark this answer as helpful or accepted if it helps. Thanks