5
votes
Accepted
How to use Sharepoint CSR to conditional hide row
First of all, you definitely don't want pre-render because there are no DOM elements there to hide yet.
I believe you should be able to set the row's display style setting to "none" right in the code ...
4
votes
Accepted
SPO Updates to an application on the page are not persistent and all activity resets on page refresh
You need to create a list to store this web part data. When you add a new value, we could create a new item in the list, when you move the option, we could update the list item in list.
My test code ...
3
votes
Unable to set a People or Group field as Read-Only inside our edit form
The following code for your reference.
<style>
a[id^='ProjectProjectManger'].sp-peoplepicker-delImage{
display:none;
}
</style>
<script src="https://code.jquery.com/jquery-1.12.4....
2
votes
Accepted
Scripts Not Working in Content Editor
You need to add type attribute to your script tag, like given below:
<script type="text/javascript">console.log('In.');</script>
2
votes
SPO Updates to an application on the page are not persistent and all activity resets on page refresh
What you did so far is the implementation of the user interface to display data in kanban based on data in the list. The way all the current kanban products works are that as soon as you move an ...
1
vote
What are the risks (if any) if we install the react-script-editor web part inside our SharePoint online tenant
Allowing scripting opens the doors to potentially malicious activities, so yes, it is not all that safe.
I doubt than any script is able to get another user's password. The authentication has already ...
1
vote
Accepted
Updating a Script Editor web part's snippet contents via PowerShell & CSOM is failing
The answer appears to be that this is not possible:
https://docs.microsoft.com/en-us/answers/questions/581947/unable-to-update-scripteditor-webpart-csom-powersh.html?childToView=582966#comment-582966
...
1
vote
Is it a bad practice to install the modern script editor web part? since contributors can add custom scripts to modern pages?
The point of using modern script editor web part is to add custom code on modern pages, it can hardly be called “bad practice” if your tenant has such needs on development.
It is not possible to set ...
1
vote
Accepted
Is it a bad practice to install the modern script editor web part? since contributors can add custom scripts to modern pages?
I wouldn't recommend allowing all users the ability to add the Modern Script Editor Web Part. If any user can add this web part to a page, then it could become a security concern e.g. users could add ...
1
vote
react-script-editor is not working for external users
From the error message, it seems that external users doesn't have permission to the Client Side Assets library in SharePoint App catalog site: https://***co.sharepoint.com/sites/AppCatalog/...
1
vote
Accepted
Unable to get a github repository either by downloading the Zip file or cloning
From the error msg, it indicates a curl receive an error of CURLE_RECV_ERROR which means there was some issue that prevented the data from being received during the cloning process.
Typically this is ...
1
vote
Accepted
SharePoint Online Show/Hide multiple fields based on choice
Try using below code:
<script type="text/javascript" src="https://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$(...
1
vote
Accepted
Can I use Modern Script Editor and JSOM to get items from a list?
No, this is impossible. JSOM can only be available in classic experience. Modern Script Editor has limited functionality.
1
vote
Accepted
Grey-out disabled "Managed metadata" & "Multiple-line of text" fields
You can set the column background color to display as greyed out:
$("div[title='managedmetadata']").children().prop("contenteditable",false).css('background-color','#F6F6F6');
$("div[title='...
1
vote
Script and Content editor web parts missing from SharePoint 2019
What’s the permission of the user who want to add the web parts?
Go to site settings->site permissions->check permissions, check what’s the permission level that the user assigned. And check if the “...
1
vote
Can You Deploy the Oslo Layout via Script Editor?
Well, any change you make is "permanent" until it's undone by somebody else - an automated job in this case.
So here's a possibly nefarious suggestion for you. If you can code, write an automated job ...
1
vote
Using "react-script-editor" is preventing me from saving the team site as template. any workarounds
It’s by design that save site as template with certain custom apps in SharePoint Online or SharePoint server 2013.
You can remove the app when save the sub site as template, then re-add it in the new ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
script-editor-webpart × 35sharepoint-online × 17
javascript × 12
web-part × 6
content-editor-web-part × 6
sharepoint-server × 4
development × 4
jquery × 4
script × 4
script-webpart × 4
2013 × 3
css × 3
spfx-webparts × 2
modern-experience × 2
jsom × 2
edit-form × 2
iframe × 2
classic-experience × 2
sharepoint-enterprise × 1
list × 1
sharepoint-foundation × 1
powershell × 1
office-365 × 1
csom × 1
2016 × 1