AnsweredAssumed Answered

disable action in Document Library in Share (amp)

Question asked by sa.ah on Mar 15, 2017
Latest reply on Mar 20, 2017 by sa.ah

Hi,

i want to disable a standard action in the document library.

I've got a custom-doclib-extension File in my amp, where i want to hide the standard action with the id "document-edit-offline".

 

I added the disableAction-Evaluator to the action, but nothing happens. The action is still shown.

 

This is the configuration:

<module>
     <id>Document Libarary Actions - My custom view</id>
     <version>1.0</version>
     <auto-deploy>true</auto-deploy>
     <configurations>                                  
        <config evaluator="string-compare" condition="DocLibActions">
              <actions>
                 <!-- Edit offline -->
               <action id="document-edit-offline" type="javascript" label="actions.document.edit-offline">
               <evaluator>evaluator.doclib.action.disableAction</evaluator>
               </action>
          </actions>
          </config>
      </configurations>            
</module>     

 

thanks for your help!

Outcomes