cancel
Showing results for 
Search instead for 
Did you mean: 

Disable 'Edit-Metadata' button when file is in a folder

dave984
Champ in-the-making
Champ in-the-making
Hi all,
i want to disable the edit metadata button in the document-details page.
I really don't want to have my logic based on Users but on folders. Basically if a document is in folder "A" the button should not be visible/enabled, if the document is in folder "B" then it could be used.
I'm pretty confident with concept such as Evaluator and WebScript but in which way i could do this?

Thank you for your suggestions!
1 REPLY 1

aaditvmajmudar
Confirmed Champ
Confirmed Champ
One way to disable action is using 'client side scripting'.

On document-details page, document-actions.js file is responsible to render all actions.

You can check renderAction method and restrict the action rendering with you custom websciprt/logic etc..

Hope this helps.

Thanks,

If this post helps, please comment as "mark comment as useful".