Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
12 views

Get Specific <td> tag in Sharepoint List New Form jquery/javascript

I need to add a span element to a specific in Sharepoint List New Form.But, how to get that specific td element using jquery ot javascript. Anyone can help me in this? beside to single line text ...
0
votes
0answers
11 views

how to alert message in sessinStorage

I have a button on my update page. This button redirects and refreshes the page after sending sms I want that; If the user pushes the button and sends sms 1 time, do not press the same button 2 ...
1
vote
0answers
24 views

Save document template from AppWeb to HostWeb document library

I am trying to create SharePoint app. Basic idea is to create document in hostweb document library from AppWeb (document template stored in AppWeb doc lib). In Details : I have created ribbon ...
0
votes
2answers
34 views

How to redirect users to a different page/URL on a SharePoint save button click in New item form?

I am having an issue about redirecting users to a different URL on Save or Cancel button. First of all I have used below code to change SharePoint list new item form's Save button to Submit. <...
0
votes
0answers
13 views

Printing SharePoint online web parts

I am using the following to print all the web parts on a SharePoint online webpart page and it is working however I am missing my headers. I have customized my headers with CSS to show background ...
0
votes
0answers
17 views

“Undefined” results with REST Query

I have a web part that extracts list items from another list and outputs them in a HTML table. However, the list items that gets output have "undefined" values. I know somewhat why - the call is ...
0
votes
1answer
34 views

How to hide a part of ribbon bar?

I have a start page with some views of normal and promoted links list. In these displayes I turned off the toolbars. But on the starter page ribbon, the list toolbar appear if a list item is selected ...
0
votes
0answers
12 views

Embed Power BI report and then handle it with JavaScript code [on hold]

I want to create a Sharepoint Online page with: 1) embedded Power BI report; 2) JavaScript code that uses Power BI JavaScript API to handle the embedded report (get/set filters, export data etc). The ...
0
votes
2answers
26 views

jQuery .combobox() breaks SPCascadeDropdowns relationship

I've implemented SPCascadeDropdowns functionality on SharePoint Online into my new item form. That's ok and it works. $(document).ready(function(){ $().SPServices.SPCascadeDropdowns({ ...
0
votes
1answer
22 views

Is there is any way to create popup form on button click in SharePoint Add-In

I am trying to create popup form on button click when i click on "create document" button then popup will be open and on that popup form i need one text box and button. please let me know how can i ...
0
votes
1answer
15 views

Nested queryAsync trying to get terms Sharepoint Online

I'm trying to get the terms from sharepoint online and put them into a select tag using JavaScript. My terms are set up like I have main categories and each of them have sub categories. For example ...
0
votes
0answers
16 views

Strange Issue with JSOM List Item Creation and Immediate Retrieval

I came across a strange issue with the SharePoint JSOM API today, and although I have worked around it, I wondered if others have seen it. It's all stock code - item created like so (sample ...
0
votes
1answer
18 views

problem with deleting and creating same look up field in a picture library

in my project, there is a picture library with a look field. I delete and create this lookup field like that : function MajBibliPhotoGare() { var clientContext =SP.ClientContext.get_current(); ...
0
votes
1answer
40 views

How i can check if my Date Time field is less than Today() date inside JS script

I have the following JS script to color code our custom list items inside out list view, by checking if the item is status does not equal Delivered and its EndDate has been bypassed:- SP.SOD....
0
votes
2answers
48 views

Uploading multiple files to a list

I'm "developing" a SharePointlist which requires to upload two pdf files at the same time, I got this code on the internet: function upload() { // Define the folder path for this example. var ...
0
votes
0answers
21 views

Add Comments And Replies To SharePoint 2013 in custom way using JavaScript [closed]

How to add comments and replies to one list in custom? Anyone can help me and provide example. I will so much appreciate your answer if anyone does. Thanks you.
1
vote
1answer
30 views

Populate people picker during PreSaveAction

I'm in a SharePoint 2013 on-prem farm. I have a people picker field called Managers that I want to populate based on users in another people picker field. Once the user clicks Save on the New Form, it ...
1
vote
1answer
17 views

Need timestamps for the completion of each stage in a work process flow

I'm using a MS SharePoint-based Intranet site to track and report the status of a requisition as it moves through its review processes. There are six stages in the process flow and, for performance ...
0
votes
0answers
10 views

Filter an AngularJS list for people in a certain Sharepoint group?

I have a list with reports which I'm calling with AngularJS, nothing fancy so far: <table ng-app="app" ng-controller="controller"> <thead> <tr> <th>Title</th> ...
0
votes
0answers
13 views

based on the choice column value show traffic color or stoplight in share point list

I have choice column Name (on time) values- Green, Yellow Red. If user select Green then On time Value as Green --> then Green IMG of traffic light should come instead of the simple choice column ...
1
vote
2answers
31 views

JSOM Error: unable to get property 'apply'

I get an error after attempting to update an item SharePoint 2013. This one is a bit of a challenge since it's referencing a different file. var siteUrl = _spPageContextInfo.webAbsoluteUrl var ...
1
vote
1answer
29 views

JSOM oListItem is undefined

I am using JSOM to update an item in a list, which I've had no problem with in the past. But for some odd reason I'm getting an error that I'm not sure about. Maybe I'm overlooking something small. ...
0
votes
1answer
20 views

Best approach to create clickable image to link to .aspx page with latest modified date?

I have a clickable image that exists on a classic sharepoint online team site that links to a page stored in the /SitePages libraray. This was integrated through a CEWP that points to a simple html ...
0
votes
2answers
38 views

Get current user name into the single line of text field for newform.aspx using Javascript in New Item form

newitem.aspx opening into the popup, so where do I need to add Content editor webpart. While opening newitem form, I need to autopopulate current user Name into sigle line text field?
2
votes
1answer
34 views

Add Dynamic Property Panes to SPFX

I know this has been asked 1000 times, but i've tried everything in the first 2 pages of google so i've decided to come to you guys for help. I'm trying to create some dynamically added property ...
1
vote
0answers
14 views

Automatically add the “fill-in” value from the Choice column to the dropdown list

I wish Microsoft included a second checkbox for the Choice Column labeled "Capture 'Fill-in' choices" that would automatically add the user's fill-in choice to the dropdown list. I'm using SP2013. I ...
0
votes
2answers
71 views
+50

No Masterpage/CSS Access. Need to programatically set up drop down menu on TOP Nav bar for Team Site w/o Publishing

First off, my limitations. I do not have access to the master page(s) or global css (either using SPD or not...). Nor do I have the ability to use managed or global navigation. This is a Team Site and ...
1
vote
1answer
24 views

JavaScript to hide sharepoint fields reruns when form is submitted and required fields are missing

Thank you for taking the time to read my question. I have a simple script in a SharePoint NewForm.aspx which initially hides a field on the form and then displays it if Yes is chosen in response to ...
0
votes
1answer
34 views

create a SharePoint list using a button in Javascript

Here's my code. It validates, but btn on click doesn't do anything. <button onclick="createList()">Click here to create a list</button> <script> function createList() { var ...
0
votes
0answers
14 views

Error when using JSOM search [duplicate]

This error appears: Uncaught ReferenceError: Microsoft is not defined in this line of JSOM code: var keywordQuery = new Microsoft.SharePoint.Client.Search.Query.KeywordQuery(context);
0
votes
2answers
27 views

Change the background colour of a cell - not highlighting text

I'm using the script editor to format my list. When I use this block of code: function boldTemplate(ctx){ var value = ctx.CurrentItem[ctx.CurrentFieldSchema.Name]; switch(value){ case ...
1
vote
1answer
27 views

axios SharePoint error in IE 11 but not Chrome

When I use axios with SharePoint, it successfully works in Chrome but not in IE 11. The error is 'Promise' is undefined. Using the polyfill does not work either. Any ideas? Code below: window....
1
vote
1answer
36 views

Sharepoint 2013 - issue with using java script to format columns

I found a few tutorials to do this, many of them point to using the jslink or content editor. I tried following the instructions in this site: CSR code samples #1 (Task Priority color) but it's not ...
0
votes
1answer
18 views

Customized Spell Checking

My users do not like the way the spell checking works in SP. They basically want the Microsoft Word experience where they right click on a word and can automatically add it to a list. While I ...
0
votes
0answers
19 views

sharepoint calendar filter by dropdown catagorey/user

Really struggling with this one. SharePoint doesn't let you connect any filters to a web part calendar to add custom filtering. we have a sharepoint site page that has a web calendar that has a view ...
1
vote
2answers
31 views

Custom 'Open in explorer' Button

I'm trying to add a custom 'Open in Explorer' button to the page using Content Editor Web Part. This is the code I've found and tried with no success: <a href='#' onClick="javascript:CoreInvoke('...
1
vote
1answer
22 views

How to set serverProcessedContent in a ClientSideWebPart

I'd like to add a file viewer web part to the home page of my online modern site via an SPFx Part. To try to make things easier, I have a fully configured file viewer part with an Excel file on a ...
0
votes
1answer
11 views

Adding webpart to page using javascript - which permissions are needed?

So I have a script up and running for the users easily to add a predefined webpart to a page (Like described here) - now it would seem my users havn't got access to actually execute the script. I have ...
0
votes
2answers
74 views

SharePoint Online List Accordion

I am needing to create an accordion in SharePoint web part for online, however I am quiet new to JS & Jquery. Is there an example of an accordion that I can use to help this? The items must be ...
1
vote
0answers
21 views

Cannot clear people picker through Javascript

I've generated a people picker and I'm trying to clear it when i reset the form but it keeps giving me this error: clear: pickerId => { var picker = ...
1
vote
1answer
108 views

SharePoint 2016. Change custom upload location to current document set

I have implemented a custom upload button on a modified 'docsethomepage.aspx'. The new page shows the properties of the DS. I would like using javascript to upload the file to this Doc set instead to ...
1
vote
1answer
33 views

How to get site ID without access to central admin or powershell

I was trying to follow this post for setting the owner of a SharePoint group using client side code. Evidently the REST /_api/web/sitegroups(id)/owners endpoint isn't functional. The XML formatting ...
0
votes
1answer
15 views

Count entries in a list depending from the current user

I have a list (Teamsites) in SP 2013 onPrem with a people picker field (Owner). Now I want show a counter of all list entries where the current user is standing in the Owner-Field. How i can ...
1
vote
1answer
41 views

SharePoint online File editor no longer has save button

starting last wednesday I lost the ability to save changes I make to my HTML/CSS/JS files in the file editor. They allow me to "Open in Text Editor" but the Save button never appears at the top of the ...
1
vote
0answers
14 views

How can I remove the option of 'Save and Close' on the Survey sharepoint app?

As above from the question, would like to find out if I'm able to remove the option, 'Save and Close' in the Survey app form? Thank you!
0
votes
1answer
35 views

Uncaught TypeError: Cannot read property 'results' of null

My column Jurisdiction is a multichoice column. My program is as below : for (var index = 0; index < ArrayRetrieved.Jurisdiction.results.length; index++) $('#jurisdiction option[value="' + ...
0
votes
1answer
30 views

How to add a DataTable with Drop-down Select Menus

Can I add drop-down select menu to my data table plugins? When I filter Issue_x0020_Status as Active, Resolved and Closed it only shows what ever the user filter. This is my page And Similar to this ...
0
votes
3answers
57 views

Call a executeQueryAsync function inside success of a function

I am able to fetch single SharePoint List using JavaScript. But here I need to Query other list based on the value fetched from first list. I have also used angularjs for the page. Find the below ...
0
votes
1answer
44 views

How to change null value to empty using REST

How to change null value to empty string in Sharepoint custom script? Here is my code. $(document).ready(function() { getUserListItems() }); function getUserListItems() { var ...
0
votes
0answers
15 views

Unexpected response data from server null with form submittal through JavaScript

I've got a function which takes values from several inputs and generates HTML to send via email. I'm using MS Flow to accomplish this. All was well until I changed one of the input boxes to a ...