Forum Discussion
Not able to display images using calculated column conditionally
- Apr 13, 2023
Avi65 Yes, it can be enabled at either tenant level or at site collection (site) level.
It is not supported for SharePoint sub-site level. So, enable it at site collection level and you should be able to use it at sub-site level.
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.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
Avi65 Do you have access to content editor or script editor web part? You can use those as well to inject custom JavaScript on classic pages.
Also, check below threads which might help you:
- How to get the Alternative text for "Hyperlink or Picture" field Type in SharePoint online
- Add to Hyperlink to column in SharePoint List using JSLINK - Help
- SharePoint 2013 Client Side Rendering: List Views
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.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
Unfortunately I dont have access of content editor web part, as I mentioned earlier custom scripts is turned OFF!
Is it possible to enable enable custom script for specific site collection?
- ganeshsanapApr 12, 2023MVP
Avi65 Check below Microsoft official documentation which has PowerShell command example for enabling it:
Allow or prevent custom script
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.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
- Avi65Apr 12, 2023Copper ContributorI already tried following script, it is throwing error, when I try to implement for sub site level. But Sie collection level, I am not getting error. Seems it wont support for sub site.
$spoadminurl = "https://mytenantdomain-admin.sharepoint.com"
$Spositeurl="https://mytenantdomain.com/sites/workflow-test/newsite"
Connect-SPOService -url $spoadminurl -credential (Get-Credential)
Set-SPOsite $Spositeurl -DenyAddAndCustomizePages 0- ganeshsanapApr 13, 2023MVP
Avi65 Yes, it can be enabled at either tenant level or at site collection (site) level.
It is not supported for SharePoint sub-site level. So, enable it at site collection level and you should be able to use it at sub-site level.
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.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs