Forum Discussion
mvnair
Jan 23, 2024Brass Contributor
Display SVG file with JS on Sharepoint Modern Page
Hi,
We are looking for a solution to display a map of a building with the option to click on button that highlight portion of the building in the map/image.
Tried creating html file with svg embedded with buttons that have js which will highlight the areas in the image (svg). But as we know Sharepoint blocks the scripts.
Tried uploading the html to a library and opening the page but scripts are disabled and image is not displayed, can see the buttons, text, etc.
Tried enabling scripts using PS but it didn't work and I don't think that is a solution compromising security for the site by enabling scripts.
Set-SPOSite <site> -DenyAddAndCustomizePages 1Is there a better way for this requirement?
No RepliesBe the first to reply