Questions tagged [javascript]
Javascript is a dynamic computer programming language, most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.
5,370 questions
0votes
0answers
10views
got TypeError: "x" is not a function with read permission to code directory, no issue with Edit permission
I use JavaScript code to make rest api call to load drop down fields in a form, with list items from SharePoint list. When the user has read permission to code directory, he got TypeError: "x&...
0votes
1answer
55views
How to hide the Recycling bin button from the Team site navigation?
How to hide the Recycling bin button from the Team site navigation, but show it only to one SP group? Need to do this without publishing features. Is it possible to do this with Application ...
0votes
0answers
28views
MS Project Server - how to insert a new child entry into an existing Enterprise Custom Lookup Table using the REST API (or JSOM)?
Through much trial and error, I was able to figure out how to create custom Enterprise Lookup Tables, and populate them with entries, using the Project Server REST API. I now need to be able to add ...
0votes
1answer
19views
Archive List Items Annually
I have a list that I need to archive items from on the first of the year. My company is running on SharePoint 2019, but still uses SharePoint Designer 2013 and 2010 workflows. I am not a developer, ...
0votes
0answers
27views
Render HTML in calculated column
After Microsoft stopped allowing HTML to render in calculated columns, I applied the below script to my web part page. However, it doesn't work if I page over in the view (ie. I go from 1-30, 31-60). ...
0votes
0answers
36views
Render javascript inside DOM element in SPFX extension
I have a JS script which i would like to render in DOM element, where when page loads the modal dialog popup will appear. I am not sure on how to achieve this. <link rel="stylesheet" href=...
0votes
1answer
21views
SharePoint 2013 how to pass URL with parameters for refreshing page after close a page
I has got this code. I want to pass a url with parameters to refresh the page after the popup close. Could You please tell me how to do this ? If I pass this code it refresh me a page but without my ...
0votes
1answer
126views
Open another sharepoint page onclick on Modal PopUp
I would like to open another page by click on the button from Landing page, I have followed the below suggestion. Looks like it only works on 2013 but not on sharepoint online. I am adding this script ...
0votes
1answer
24views
Load Video on SharePoint Online Immediately
We are facing an issue loading the video on the custom landing page (using AngularJS + HTML) on SharePoint online. It takes 2-3 seconds to buffer the video after loading the page, then it's playing, ...
0votes
0answers
13views
NewPage.aspx redirects to recycle bin on SavePage - suspected document library error
When I create a new page in SharePoint and save the page it automatically gets checked out and is moved to the recycle bin with the error {"odata.error":{"code":"-1, Microsoft....
1vote
1answer
100views
Only get part of the SharePoint list with JavaScript Fetch
I have a problem with getting all SP list item (257 currently) with fetch. I have the following code: var tasks = new Request( webUrl + "/_api/web/lists/GetByTitle('" + listName + &...
0votes
0answers
48views
How to show column based on the certain radio button value selected
our company just upgraded our Classic SharePoint to 2016 and currently I'm working on the SharePoint workflow for approval. I have 2 questions? 1.) Post upgrade, I noticed all of the scripts that ...
0votes
1answer
80views
Typescript custom action deploying banners with SharePoint 2019 list item data
I have a HelloWorldApplication which is in a development environment using gulp serve as the deployment. I am able to deploy the solution to a page, which renders banners on the top and bottom of the ...
0votes
0answers
70views
target="_blank" attribute is stripped out of <area> elements on SPO page
SharePoint Online is stripping the target="_blank" attribute out of my <area> elements when I add them to a page by editing the markup directly. This is the relevant code I am ...
0votes
0answers
23views
SharePoint Classic - JavaScript issue
This is my JavaScript file that works, but only does not work in SharePoint. May I please have assistance on why it doesnt? function initializeCustomScript() { // Wait for the DOM to fully load ...