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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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
6 views

Applying background image to SharePoint Subsite, added to SharePoint Popups

I'm trying to inject some css to the body of my SharePoint webpage for a background image. The .js is essentially this: document.getElementsByTagName( "Body" )[ 0 ].style.backgroundImage = <My ...
0
votes
0answers
3 views

Disable fields based on choice *that may have multiple choices*

Is the title weird-sounding? It is to me. But, here's my situation: I would like to disable (in some way, greying out, or whatever) certain fields in a list based upon a CHOICE field I've got at the ...
1
vote
0answers
14 views

Allow Only One User to Submit SP Form

I know this should be able to be possible but do not know where to start. I am working in sp13 and created a custom list. The custom list form I want users to be able to submit one form and not be ...
1
vote
1answer
30 views

How to count SharePoint list elements using CAML Query

I have got CAML Query. How to count how many elements is in the list checked ? Here is javascript code: var siteUrl = '/sites/MCUW-IT/kostka-pilotaze/restauracje-pilotaże/'; var clientContext =...
1
vote
2answers
16 views

Attachment File using REST was failed to upload with the problem of SP.RequestExecutor.js

How can I add attachment in SharePoint I am stuck on this problem hopefully can help me to proceed this problem. I will so much appreciate your help. Thank you.
0
votes
0answers
7 views

How to add custom multiple attachment files [on hold]

Is it posible to add multiple attachment files in a custom javascript or jquery in sharepoint? If it's posible please help me how to make these function.
1
vote
1answer
13 views

SharePoint list form field as Read-Only with IE

WE are not able to get the form field as Read-only with IE and it is working with chrome. code snippet : <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/...
0
votes
0answers
9 views

File Drag and Drop Prompt Metadata Properties Dialog in Sub Folder in SharePoint 2016

I used this solution to add a Meta-Data Dialog for a DocLib in SharePoint 2016 https://sharepoint.stackexchange.com/a/158373/48328 Works fine so far, but only in the root folder and not in sub ...
0
votes
1answer
34 views

Context.ExecuteQueryAsync not trigerring

I am debugging the code below and the line Context.ExecuteQueryAsync is not being trigerred. I am not getting any error. async function updateListItem(listName, itemId, itemProperties, pageurl, ...
0
votes
2answers
55 views

Customizing NewForm in SharePoint online

I am currently using SharePoint to set up a vacation request system. I have created the following lists Vacation Request Vacation Request Dates Vacation Request history On the NewForm for Vacation ...
0
votes
1answer
24 views

Hide nearly all page elements except when user is site admin

I'm feeling my way through being a site collection admin. I have a home page I wish to remove all sharepoint elements and just have a table of buttons. I've done this by added this CSS to a CEWP: <...
0
votes
1answer
21 views

Referencing multiple (different) Div Id's using document.getElementById

I'm using script editor WP to create a Full screen overlay navigation feature. I got the code from https://www.w3schools.com/howto/howto_js_fullscreen_overlay.asp. I modified it some because I want ...
0
votes
0answers
20 views

How can I change that UI? i.e bootstrap, semantic [on hold]

How can I change that UI? i.e bootstrap, semantec. Here is my sample code. <script type="text/javascript"> $(document).ready(function() { $("span.hillbillyForm").each(function() { ...
1
vote
1answer
17 views

Refresh publishing page on modal form submit in SharePoint Online

I have a publishing page with a button users can click to launch a new list item form in a modal pop-up. It works great but I'm trying to add a page refresh after they click Save so they can see their ...
1
vote
2answers
24 views

How to perform nested CAML operations using promises?

Team, I have 3 lists, (a) Issues (b) Risks (c) Incidents. I want to... 1 - Run a CAML query against (a) Issues list to get all the issues not closed. 2 - then run a loop through the titles, and use ...
0
votes
0answers
8 views

Show Lync info after dynamic userfield load via REST

I build a page in Sharepoint Online. By a button click it shows a user from a listitem and it renders it in html using REST API and JS: /_api/web/lists/getbytitle('thelist')/items(1)/...
1
vote
0answers
9 views

Parent/Child List: go back to Modal Parent dispform after child form submit/save

My need is very close to something already treated like this topic but the solutions doesn not seems to work on Modal/Dialog forms. In my context, I have a parent list ("projects") and a child list ("...
0
votes
1answer
25 views

Java script which will show me the alert like Versioning is enabled or not for that document library when user access any document library

I need to create java script which will show me the alert like Versioning is enabled or not for that document library when user open any document library. Please let me know how I can achieve this by ...
0
votes
2answers
31 views

How to get data from JavaScript getelementbyid

How to get data from JavaScript getelementbyid insert into Html input text? Here is my sample code: <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(init,'sp.js'); var ...
0
votes
1answer
30 views

Script not working for changing number of items to show in content search web part for some users

I have this script to change the number of items to show in CSWP function loadScript(selectObject) { var newItems = parseInt(selectObject.value); var pageUrl = _spPageContextInfo....
0
votes
0answers
13 views

SP.UI.ModalDialog suddenly undefined

We are following this blog post to popup some info pop ups and some dialogs using code like this: var options = { title: "Are you sure?", url:'<site>/Pages/dialogs/' + __dialogName + '....
0
votes
1answer
20 views

How to add time stamp in addition to user name profile property

I am using below code with reference to this thread: Yes/No (check box) - who updated field on the custom list item Basically when a user checks on a yes/no column, it shows/prints the user name who ...
0
votes
1answer
24 views

SPServices getlistitems not all attributes are in responseXML

I have a section of my code where I am retrieving a list item using SPServices GetListItems. When pulling back the data for use I a missing one of my fields which I need for the display to work ...
0
votes
0answers
18 views

Open a Request Meeting in Outlook from a SharePoint Page Using JAVASCRIPT [closed]

When i Click on the button "Meeting Request" I want to be redirected to the Meeting Window of Outlook. I used this Function function CACMeeting(){ window.location.href = "mailto:exemple@...
1
vote
2answers
41 views

Javascript pop-up confirmation box when a field contains a certain value but clicking 'Ok' doesn't submit the form?

I have a Script Editor web part running on a 'NewForm.aspx' page that contains some javascript that pops up a confirmation box if a certain field contains a certain line of text when the user is ...
0
votes
2answers
28 views

Linking JS with web part in Sharepoint 2013?

I created a sharepoint task list with the column "Priority" according to this guide: https://code.msdn.microsoft.com/office/Client-side-rendering-code-0a786cdd#content Then I linked the JS, which I ...
0
votes
1answer
29 views

Validation of lookup fields

I am using the following Javascript code using Script Editor on NewForm.aspx. It supposed to be working but by debugging I can see that the value returned from the dropdown select is empty. I looks to ...
1
vote
3answers
47 views

Sharepoint traffic light

My boss wants me to make a traffic light system inside a list, which changes colour depinding on the values of a column, using javascript(has to be javascript!) in sharepoint 2013. I found a guide ...
1
vote
1answer
43 views

How do I edit colum in SharePoint Online using JavaScript?

Hope you're well; What is javaScript code to add on SharePoint list for showing a few lines of text per row so they all the same size where reams of text have been written this is via scroll or ...
0
votes
0answers
24 views

How to read returned values from XMLHttpRequest call?

I am using SharePoint 2013 on-prem. I am having a problem with my XMLHttpRequest. I do not want to use a jQuery wrapper so I need help getting the below to work. How do I get to the data? Also, my ...
1
vote
1answer
43 views

How to get App Catalog site URL using JavaScript?

Is there a way to programmatically get the App Catalog site URL in a SharePoint Framework (SPFx) Web Part? I'd like to read/set the SharePoint Tenant Properties in my Web Part. However, we need to ...
0
votes
1answer
18 views

Get the ID of a Publishing Page, that just was created in JSOM?

I'm creating new publishing Pages via JSOM and now i need to get the listitem to change some fieldvalues but i struggle to get the ID of the publishing page that i just created in Pages library. ...
0
votes
0answers
8 views

Two lists with Site, one with site number, and one with column with many site number Need Assistance

I have got two lists one with one site number in record, and one with many site numbers in one column: -------------------- --------------------------------- | Site | Name | |...
0
votes
1answer
31 views

How to remove duplicate values from a list drop-down separately

I am using below JS code to show certain choices in a Company drop-down based on Project Name passed in loadcompanies function for example in below case: Rahway DMV. There is a company list from where ...
0
votes
1answer
38 views

Pass number of site from one list to another: Need assistance

I need to pass from one site to another number of site and shiow this record on the View. If I passing record by ID it's all work great, but when I pass by caml Query nothing happening. I tried many ...
0
votes
0answers
12 views

Record element Value in sharepoint list how get? - javascript Need help [duplicate]

How can I get Sharepoint list value of element. | Title |Name|Surname| |Worker |Iza |Stat | |Teacher|Jan |Aderek | How to get a names from people on the list by call javascript ? var items = ...
1
vote
1answer
27 views

How to send an email notification when an external users download a file shared

I have a situation where external users are given access to SharePoint. The Client wants to setup a functionality in such a way as let's say if an external user downloads a file shared with them then ...
0
votes
0answers
13 views

Removing delimiters while exporting a list to an HTLM table

I am trying to use SPServices to display a list as a custom HTML table. I used the solution given here: https://sharepoint.stackexchange.com/a/137446/77551 So far, so good, but user names on my list ...
2
votes
1answer
69 views

Need assistance: JavaScript Code

Code work whell before i add to code: items[i].get_item("SITE") I can take ID from code, but not a column element. What have I do bad. Here is a code: <input type='button' id='123' value='Pokaż ...
5
votes
3answers
210 views

Responsive content to list view width in SharePoint 2013

When I change the width of a SharePoint list to a certain amount of Pixels, I have the problem that some content of the list gets cut off on the right side - see the following Screenshot: Is there ...
0
votes
0answers
14 views

How to get from two list items colums by javascript

Hello how could I take two lists values by two loops and find out in which colums is equal one list to another list. All by javascript.
0
votes
0answers
7 views

How Can I Add User To Group if the Group Has an Ampersand

I've got a custom page that allows the site administrators to manage users on two different site collections. One of the tools is a button that adds that user to the same group on those two site ...
0
votes
0answers
21 views

I have got a code which only give me id of selected element

In this code I get only id. How could i get another column not only Id. Here is a code: <input type='button' id='123' value='Click Me' onclick="getSelectedItems();"/> <div> <p id="p1"&...
0
votes
0answers
10 views

How to set by geted id from one list the abother list ids [duplicate]

I have got javascript code: <input type='button' id='123' value='Click Me' onclick="getSelectedItems();"/> <div> <p id="p1"></p> </div> <script ...
-1
votes
1answer
34 views

JavaScript code on working on SharePoint Online list

Hope you're well; I am adding JavaScript code into content web part. However it is not working. I'm i mising something out.
0
votes
0answers
16 views

How can I read excel document from Document library in SharePoint 2007 using JavaScript?

I want to read the contents of excel file stored in document library in SharePoint 2007. SP2007 does not support Sandbox solution and I can't deploy farm solution. I need JavaScript based solution. ...
0
votes
3answers
57 views

jqueryui not rendering on sharepoint 2013 page

I have a 2013 sharepoint site I created a CEWP to read my hmtl page. All the html is rendering ok but I am having some trouble linking jqueryui.css or jqueryui.min.js into my site. It works ok when ...
3
votes
1answer
34 views

Email to Sharepoint group using Javascript

I have added a client people picker on a page and would like to send mail to all the members of the selected SharePoint group in Javascript. Using Sharepoint Online. The people picker is configured ...
0
votes
1answer
22 views

Embed javascript with jslink

I have a simple javascript demo file [demo.js], stored in the [sitecollection]/[site]/SiteAssets/Scripts directory: <html> <body> <script type="text/javascript"> ...
0
votes
0answers
14 views

view properties in search

I have made a search field for "my lsat documents" and "my last checked out documents". I need to add a column with a button for each document to display the predefined modal box with it's properties. ...