Forum Discussion
SharePoint Communication Sites - "Send by email" settings
Hi - this is the source code for building a Sharepoint app. You will need to follow the instructions on this site: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part
I'm sorry I can't be of more help right now.
Thanks,
Dave
So my manager approached me yesterday about this button, asking if we could disable it. Official answer from MS is "no."
So I whipped up this quick Application Customizer Extension. As the page loads it checks for the button, and replaces it with an empty div. It's a bit of a hack job, but appears to be working so far. Biggest downside is it needs to be installed to each site collection individually. And if MS ever changes the name of the actual button element, it'll have to be updated.
- DanivilleApr 12, 2021Copper Contributor
My Send by Email option was present last week and now disappeared. I wanted to use this to share our new Hub site. Any idea where it could have gone? I have looked everywhere.
- Robert HovorkaOct 23, 2020Copper Contributor
Don0011595 I believe the HelloWorld example is a webpart, which would not be sufficient for this purpose. The application extension is still a SharePoint module, but is a different template and has some different functionality and requirement.
- Don0011595Oct 23, 2020Copper Contributor
Robert Hovorka Thank you for our reply, to my message.
I have just being trying to get familiar, with the Sharepoint Framework and the Helloworld example.
Is such a basic example, as HelloWorld, adequate, so that your code could be embedded and applied, to hide the 'Send by Email' button.
The 'Helloworld' example is quite lengthy, but, very interesting.
Regards,
Dan
- Robert HovorkaOct 09, 2020Copper Contributor
It is a custom module that can be installed to a site. I created a new module using SPFx and this was the code I put in it.
Overview of SPFx if you are not familiar with it:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/sharepoint-framework-overview
The specific module type was "Application customizer" extension
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/overview-extensions
- Don00135Oct 09, 2020Copper Contributor
Looking at your code, regarding the removal of the 'Send by Email' button, in Sharepoint 365; where does that code, get fitted in, on the site-page? Do I need a special webpart, for it?
It is a real pain that there is no solution for the 'Send by EMail' link, which keeps appearing on site pages, in Sharepoint 365.
It is definately, a drawback!
Regards,
Dan