Forum Discussion
How to add javascript to sharepoint online Modern Page
- Feb 19, 2024
thanhtien19 Microsoft have purposefully locked down modern SharePoint sites to prevent a lot of the customisation that was previously available in older versions. However you can create web parts with the SharePoint Framework SPFx or download samples from github at https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples where there are instructions for downloading and installing them. Also, there is a modern script editor web part available from Add an app in the SharePoint menu.
Rob
Los Gallardos
Microsoft Power Automate Community Super User.
Principal Consultant, SharePoint and Power Platform WSP Global (and classic 1967 Morris Traveller driver)
Are you trying to use the SPFx web part solution for only one "site"?
If yes, you can use the site collection app catalog instead of tenant app catalog.
Check this Microsoft official documentation to enable and use site collection app catalog in SharePoint: Use the SharePoint site collection app catalog
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.