1

We want to force apply usage of office web apps only and not client application. We can change default open behavior to open in "Web App" only but still it shows "Open in Word" when we open in browser. Any way we can remove that totally?

0

We can set the default open behavior for documents. When we change the behavior from open in the client application to open in the browser, the file will be opened in the browser by default when clicking the file link. But there is no OOB method to remove/disable “Open in Word” option.

To hide this “Open in Word” option, you may need code such as CSS or JavaScript.

In the classic experience, we can use the following script on the page to hide “Open in Word” option from context menu.

<style type="text/css">
li[aria-label="Open in Word"]{
display:none;
}
</style>

However, in modern libraries of SharePoint Online, we cannot edit the page and add custom code to hide this option.

Information about customizing modern lists and libraries.

Switch the experience from modern to classic experience and use script.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.