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

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.

0
votes
1answer
15 views

SP 2010 Multilevel SPCascadeDropdowns not working

I have a problem with an Multilevel Dropdown Cascade . I have on List where the user should work with "Projects" and 3 Lists for the cascades The first cascade works fine but not the second this ...
1
vote
3answers
32 views

Windows Security Auto Login

I have this problem that one of our landing page(Wiki) in our sharepoint site has a dashboard that is getting data from a non sharepoint site and you need to login in order to view this. But not all ...
0
votes
0answers
25 views

How to add Item e.g. Title, Name, Attachment in List

How to add Item in my attachment script e.g. Title, Name.** I am using this script for attaching file.. Problem is how to add the title and name for another field to add in a list. This is my script. ...
1
vote
2answers
174 views

Set current user as default value for lookup column

I have a list with one Lookup field stores employees and one people picker, what am looking is based on a user login I want the user name to be default in the people picker and if the user name exists ...
0
votes
3answers
123 views

SharePoint Online: Hide specific field in View/Edit views based on permission group

I am fairly new to SharePoint Online... What I am trying to accomplish is hiding a certain field in the View and Edit view mode on a Custom List. I have found articles on it but can't seem to figure ...
0
votes
0answers
19 views

Best way to update large list that have workflow when update items

I need to update all items in a large list (19k items). That list have a workflow that handles on item update. I'm using CSOM to get all list items, and for each item I run a update query. The ...
0
votes
1answer
18 views

How to Edit/Add to a CAML query return object?

Team, Is there anyway at all, to add the input parameter "issueItem" into the CAML query result, i.e. tag each row of the result, so that when its passed back I can extract it at the same time as the ...
0
votes
0answers
12 views

Add Javascript Browser Alert to SharePoint List Submission (Modern Site)

I'd like to add some javascript that runs when a list item is successfully added to a specific list. I've never injected Javascript on modern pages, but I'd like to thinl I could do this. Can't find ...
1
vote
1answer
39 views

Automatically activate sharepoint framework extension on all subsites(modern pages)

I want to use simple js script on my intranet Sharepoint Online modern page. I used this tutorial and everything works decent, but when I create subsite mine js script just does attach. How could I ...
2
votes
3answers
174 views

How to show/hide columns based on value of SharePoint choice check box

I am working with SharePoint online and in one of the lists, I am using a choice check box column called 'Vehicle Type' with following choices: Personal Vehicle, Company Vehicle. I am looking to do a ...
1
vote
1answer
23 views

SharePoint Client Object Model - Javascript or .Net?

We currently have a SharePoint 2010 environment and planning to migrate to SP 2016(Q2 2019). For SP 2010 we have developed a component to developers that want to consume SharePoint infrastructure. ...
-1
votes
1answer
96 views

Is it posible to upload file in Lists Attachments in SharePoint in custom way

Is it posible to upload file in Lists Attachments in SharePoint in custom way I already tried using REST and JS but I am facing an error and it can't upload if it's posible kindly suggest what way to ...
0
votes
0answers
50 views

Refresh Browser Form on InfoPath Button Press

Can anyone explain the approach to refreshing a page when a button is pressed on an InfoPath form using SharePoint in a browser? I am using the Script Editor under Edit Page on the Edit View for the ...
0
votes
1answer
37 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.body.style.backgroundImage = <My Image URL> document.body.style....
0
votes
1answer
36 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
28 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
135 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
25 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
1answer
66 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
60 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
68 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
2answers
119 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
39 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 ...
1
vote
1answer
85 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
64 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
23 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
29 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
44 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
31 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
34 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
25 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
64 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 ...
1
vote
2answers
65 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
34 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
43 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
83 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
53 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 ...
1
vote
0answers
33 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 ...
2
votes
1answer
469 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
85 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
9 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
93 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
40 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
13 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
33 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
14 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
80 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
371 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
18 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.