Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

how to disable rename link of attachment file on form header

John91
Tera Contributor

Hi,

I need to disable rename link of an attachment file when the incident record is not closed.

John91_0-1759473388560.png

 

Is there any way?

Thanks in advance!

5 REPLIES 5

vignesh parthib
Kilo Sage

Hi @John91 

ServiceNow provides a system property that affects whether users can rename attachments at all:

  1. Navigate to: System Properties > Security

  2. Look for the property:

    • glide.attachment.rename.enabled

  3. Set it to false

    • This disables the rename option for all users across the platform.

Thanks,
Vignesh
"If this solution resolves your issue, kindly mark it as correct."

miftikhar20
Kilo Patron

@John91, Nothing possible OOTB, please refer to the below thread for custom logic.

https://www.servicenow.com/community/developer-forum/block-renaming-of-attachments/m-p/2846775

Thanks & Regards,   

Muhammad Iftikhar   

If my response helped, please mark it as the accepted solution so others can benefit as well. 

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

Ankur Bawiskar
Tera Patron

@John91 

you cannot restrict it based on particular state.

you can use onLoad client script + DOM manipulation to handle this

Note: DOM manipulation is not recommended

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@John91 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader