Stack Exchange Network

Stack Exchange network consists of 175 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.

3
votes
1answer
1k views

how to by pass multiple claim authentication login page in sharepoint 2013?

My Requirement is I have SharePoint Server 2013.Now I just added two AD FS Server 3.0 and configured to SharePoint site http://spsxyz with Claim based authentication. An example of My Server Setup: ...
0
votes
1answer
22 views

Hover images(Enlarge image on Mouse Hover) from SharePoint list 2013

We had SharePoint list with image column. Our request, when some one keep mouse on image column, picture need to enlarge(hover). Can someone suggest direct how to achieve with code. Thanks in advance ...
4
votes
1answer
76 views

Get SubFolders using Sharepoint REST API and show them in HTML DIV

I want to retrieve Subfolders using SP REST API and check if there is any created folder and If it exists, display HTML content like: <label>SubFolder Title</label> for each SubFolder. All ...
0
votes
0answers
9 views
5
votes
4answers
10k views

JS files returning Cached (Old) Versions Despite Update

We are currently in the wild throes of a migration from SP 2007 to SP 2010. I'm attempting to move some custom JavaScript Validation from the current production site to our staging site. My ...
0
votes
1answer
558 views

Site Assets Javascript file will not update

So I have the weirdest problem I have seen in SharePoint yet. So I am trying to practice using javascript and I can't figure out what is wrong with my methodology. For a background, I am trying to ...
0
votes
1answer
3k views

Get person or group field from list then query user profile

I am currently working on SharePoint 2013 on premise and I am trying to use JavaScript to get the latest 3 "new starters" from a SharePoint list then return information about them such as the ...
0
votes
0answers
21 views

How do I bring the Rating Feature from Share Point to my website

I have created a coupon page and I would like to implement the rating feature Share Point offers. I created a Rating Column in my list and then made an Ajax call to retrieves all the items from that ...
0
votes
0answers
14 views

call c# method in javascript sharepoint 2016

I have a Rendering template list view created using JavaScript and i have c# class method. How can i call the c# method in JavaScript or how to include the assembly in the Javascript?. Thank you.
0
votes
0answers
21 views

How do I create Rows and Columns in jQuery after pulling data from a Share Point List [on hold]

I created an accordion in JavaScript that contains 7 categories,I am also pulling data from a Share Point list and filtered the items by category. After filtering the items by its category and append ...
0
votes
0answers
14 views

How to show lookupcolumn field data in custom form field

Created a lookup column in my sharepoint list that fetch data from different list Now i created a custom dropdown fields i.e, <select id="test"></select> How i will display the dropdown ...
0
votes
1answer
12 views

How do I filter elements from a Share Point list by category in Java Script

I have a created an accordion that has 7 different categories (Auto, Entertainment, Health and Beauty, etc). The content of each category lives in a SP2013 List; each list item was given the ...
0
votes
1answer
17 views

How to access Everyone But External Users via Javascript in SharePoint Online

When adding a group to a site via Javascript, I know you're supposed to use the group ID - but if I want to add "Everyone except external users" to that site with Read permissions, what ID do you use? ...
0
votes
2answers
603 views

Get additional column values from selected item in list view using Javascript\JQuery

I'm currently using JS (items[i].id;) to successfully get the id of selected items in a list view, however, I would like to pull column values from the selected row(s) like "Title" etc. if possible ...
0
votes
1answer
28 views

Jquery Validation Plugin Error This[0] is undefined - Sharepoint Online Add-in Development

I'm development a Sharepoint Hosted Add-in in Sharepoint Online tenant. I'm using Jquery and Jquery Validation to make form validation, but I have a issue with JQuery Validation because of get error ...
2
votes
1answer
26 views

Check if a user is a member of SharePoint group JS REST API using async await

How can I check if the current user is a member of a specific SP Group using REST API and async/await? _spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups/getbyname('" + grpName + "')/...
0
votes
2answers
770 views

Add OnClick Event to SPFX Html - No Framework

I have an SPFX Web Part (No Framework) and would like to add an onClick event to my which will call my function swap(). Code: export default class ExpandableIFrameWebPart extends ...
3
votes
3answers
1k views

Conditional formatting for SharePoint Online column.

I am working on a SharePoint Online 2016 site collection and need to add conditional formatting to a few drop down fields. The drop down options are: 1: Red, 2: Amber, 3: Green. I want the field in ...
1
vote
3answers
7k views

Javascript not working in IE but work works in Chrome

I had a long search and until I found a working script to use the logged in user id. Finally I have found the following Javascript code, put it in XSL to be used in an XMl viewer web part: <script ...
6
votes
1answer
2k views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
0
votes
1answer
18 views

Only Showing Timeline in Task List

I know how and find many ways how to hide the timeline from the task list but I don't find where I can just show the timeline and hide everything to the list. Question: What can I do to show the ...
2
votes
1answer
2k views

Grouping SharePoint REST API results

I am building a customized events feed via REST query. I have a feed of all events in the calendar, filtered on date range and sorted, but I'd like to take it a step further and group the results by ...
0
votes
1answer
2k views

SCRIPT1004: Expected ';' error in the browser

I am using this script to hide 'Edit' button from SharePoint ribbon on my custom webpart's ascx page and calling it in the page load: function hideEdit() { var edit = document.getElementById("...
0
votes
2answers
600 views

Getting choices from choice field in Online using JSOM

I am trying to get all of the choices from a choice site column in SharePoint online. Using the following code I get to the success method but it errors out saying 'field' is undefined. I don't ...
0
votes
2answers
1k views

how to control speed of carousel?

Currently using bootstrap.min.js in my share point slider web-part. i have custom property "Speed" ,trying to control speed of carousel from code behind how to do it?
0
votes
0answers
10 views

Custom JS produces different results based on user's permission level in SP 2013 [closed]

HELP! I understand this question is a bit vague, however, that is because I have never run into this issue before and I have no idea where to start. Anyone who can share a similar experience and ...
3
votes
1answer
5k views

Full-Calendar Js not showing events

I have created an html page in which i have palced the full-calendar code. the script retrieves data from my shareoint calendar list - "Room Reservation" using SP-Services. I am able to get the ...
4
votes
3answers
1k views

Add showWaitScreenWithNoClose to SPServices GetListItems

With a button on page which calls the function createListItems() which is added to the page as a link in a CEWP. The function takes 10-25 seconds to complete (get items from one list and add them to ...
1
vote
2answers
2k views

Set value in a column on click of a button in SharePoint

I have a customized form in SharePoint 2013. I want that on click of the submit button on the list, a value will also update. Currently on click of the submit button, it is saving the values and ...
0
votes
1answer
2k views

Print the content part of DIV in SharePoint 2013

I`ve researched a lot and spent more than 24 hours on it, but what ever reason adding the following in Content Editor WebPart on SharePoint 2013 List page, doesn't does the job as expected. ...
0
votes
2answers
2k views

Add SAVE button to Custom Form

I have a custom HTML form and I need to add a second save button to my form on the top. So I created my button and can not find the right javascript function that will submit my form. Basically, I ...
1
vote
2answers
731 views

Retrieving Lookup Values, Javascript SharePoint 2013, Not Working

I've seen a lot of info on the above question but none of it has answered what I'm looking for, so far. I'm trying to retrieve list items that have a great number of lookup fields. I've had success ...
0
votes
2answers
31 views

SharePoint Custom Webpage/Part Not Consistently Loading

I hope this is the right place I have been in a role within my organization working with SharePoint for a couple of months now, so i'm a newb more or less. I have some experience (again a novice) ...
0
votes
1answer
11 views

how to get people picker field value and store it in a variable

i have a small requirement where in, i have a column "Employee Name" as a people picker field, now i just want to retrieve the employee name value in a variable after the user has entered his name in ...
0
votes
0answers
6 views

Comparing changes in multi-value fields in a better way in SharePoint Online

We have created a user database and as part of this we have a few multi-value fields in the SharePoint List. When a new value is added to the multi-value field we use the versioning to see which of ...
0
votes
1answer
26 views

How to SP2013 list put it into DataTable dynamically?

I have a sharepoint 2013 list with some items, I need to put it into DataTable dynamically, is possible create the html table automatically?
0
votes
1answer
30 views

Retrieve users info with js and sharepoint

I am facing following issue: I need to retrieve users from the whole domain not just siteusers list at sharepoint so that can can manipulate them and for example add them to sharepoint groups. I ...
0
votes
1answer
29 views

Freeze First Column of Sharepoint online List view using Jquery/javascript [duplicate]

i want to fix first column (ex: Title column) of my sharepoint list view, so that whenever the user scroll horizontally the first column should be fixed. Thanks in advance for your support.
1
vote
1answer
9k views

How can I make links in the left navigation open in a new tab?

I'm trying to make two links on the left navigation open up into a new tab as they are external sites. It should be as easy as adding target="_blank" to their HTML element but when I wrote some jQuery ...
0
votes
2answers
44 views

How to add JS validation on SharePoint new item form to check date field populated or not

I am working with a Task list in SharePoint online. On the new item form, I have a field called 'Due Date' (Internal name: DueDate) which is set to optional and for one of the Flow requirements, I ...
1
vote
1answer
595 views

Alert me How to display word document in browser window?

We need to display a word document inside the browser as part of our SharePoint application. But when we tried to achieve this, it is always showing a popup with options like Open, Save and Save As. ...
1
vote
1answer
36 views

javascript not working first time after iisreset in a visual web part

I am having a bug in one of the visual web parts. First of all, this is not my code and I am not an expert in javascript. Secondly, this issue is only happening the first time after the pool has been ...
0
votes
1answer
15 views

Javascript to read site collection storage volume

It is possible to read the storage Volume of a site collection with JavaScript?
1
vote
1answer
3k views

“Permission Denied” error in IE after adding content editor to form

A site that I have not modified in several weeks has suddenly stopped functioning in Internet Explorer as it has for the past few months. I have a content editor in my list on the New, Display, and ...
1
vote
1answer
1k views

Add button to webpart with javascript

I want to add button to all web parts of my home page instead of add new item link and I've no idea how to create it For additional information I am using share point 2013.
6
votes
1answer
4k views

Getting Version History and What Field has Changed

I am using the GetVersionCollection to get the history information from my list. This seems to be working fine; however, what I need to do is get the version history of the individual item which has ...
0
votes
2answers
13 views

Connected Excel Spreadsheet to SharePoint List

Here is what I have done and what I am trying to do. I have a SharePoint list that I exported to Excel and then created a connection. When I add an item in the SharePoint list the new items are ...
0
votes
0answers
13 views

SharePoint 2013 Hide list row based on another list with javascript

I have two lists, Parking Slots and Reserved Parking. Reserved Parking has a look-up column (Slots) from Parking Slots. I have a page where both lists are displayed. What I need is a javascript ...
5
votes
2answers
3k views

How can I populate a dropdown with a SP list?

I have a SP List with data that I need to be in a dropdown list. I also need these to have specific classes. I'm trying something like the following but having no luck: $().SPServices({ ...
0
votes
2answers
2k views

How to store the hit count of a page in a sharepoint list.

I have created a page and now I want to get the track of hit count of that page. I want to store that no. in a sharepoint list. On every page load the count should get increased by 1 and get stored ...