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.

learn more… | top users | synonyms (2)

0
votes
1answer
61 views

How to get Sharepoint 2013 variation URL?

I want to create a toggle button for variations, so that when I am on the en or fr page, and I click the button it takes me to the other page. But I can't just change the en to fr, for example, ...
0
votes
3answers
55 views

How to update list items using JavaScript Object Model in SP 2013

I am trying to update list item's value through JavaScript object model in SP 2013. When I call set_item('fieldname','mvalue'), it does not throw any error, but it fails to update. How to ...
0
votes
0answers
32 views

Freeze the header columns for list in SharePoint

I'm working with a piece of code that are supposed to "freeze" the header column so when user has to scroll down, the headers remain visible and the user know what he or she is looking at. I have ...
1
vote
3answers
47 views

How should I add JQuery on custom page layout for SP2013?

I am working on a SP2013 on-premise farm and try to create a custom page layout. There are some JQuery function I need it render on particular custom page layout but not other pages. <script ...
0
votes
1answer
38 views

How Can I Pull data out of a SharePoint list from embedded code on the same SharePoint Domain Using SPservices and Javascript/Jquery?

I am trying to pull data from a column in a list. The list is in the same domain as the page that I have embedded code in. Here is the code, I have removed several of the functions that do not have ...
3
votes
1answer
116 views

How to reference the Site Collection URL inside the src attribute

I added a custom script to my "Style Library" folder under a site collection. The site collection URL is http://servername/HR. So to reference the script inside my master page I wrote the following: ...
0
votes
0answers
52 views

Issue facing for Sharepoint online Authentication using javascript

Using the code functionality in the link Code to authenticate SharePoint online users using javaScript. I am facing an issue that- ajax call for Microsoft Login service which uses a soap request , ...
1
vote
4answers
76 views

Best practice location to deploy CSS/JS/image files

For SharePoint development, I am used to placing all the images/CSS/JS files into the mapped layouts folder (..\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS) using Visual Studio. ...
0
votes
2answers
55 views

Counting the number of times a Specific value appeared in a column of a list

I have a list with column status. Some of the items in the list are approved. I need to count the Total number of approved Items. I have to do this using javascript..
3
votes
2answers
122 views

Custom calendar display template / JS Link

I'm looking for a nice custom calendar. Display template or jslink, doesn't matter. Something like that would be awesome: http://deviprsd21.github.io/Calendario/index2.html Has someone tried to ...
0
votes
2answers
9 views

Create a Homepage for TeamSite with SharePoint 365

What I am doing is to set the Home.aspx as the Homepage for my TeamSite. I've added a Web Part as Script Editor and put the jQuery script as below to remove or hide the left menu and the Home. ...
1
vote
1answer
21 views

ModalDialog on Dialoge close run javascript

Hello Iam coding a Sharepoint Solution with a Application page. In this Page i created a ModalDialog to open when a Button is clicked. The Problem is I want to run java script when the Dialog is ...
0
votes
1answer
26 views

Customized list form vs javascript & html solution in SP2010

I have one requirement in which we have to enter the q1,q2,q3,q4 details for 3 consecutive years for three categories, that means total 36 fields. There are some other fields similar to this. So total ...
5
votes
2answers
248 views

Get UserData - JavaScript

As seen in the following picture, when I add a User-Filter to a page it allows me to choose the parameter to pass. In my case I used the Büro. How can I retrive this data from client using ...
2
votes
0answers
32 views

How to exclude TaxonomyFieldControl from spell checker

I have a page layout with a couple of TaxonomyFieldControls on it. When I run the spell checker in the ribbon the taxonomy fields are getting flagged with spelling errors. I don't want the taxonomy ...
0
votes
0answers
22 views

pop up info tab for custom list in sharepoint 2013

I am looking for a pop-up something like in the picture. (column info) Is it possible to use calculated column or Client Side Rendering for this kind of requirement. Anyone who have any idea ...
1
vote
0answers
36 views

JQuery does not work anymore when refresh the page SharePoint 2013

I want to change value of span by jquery (selecting by ID and CSS). The script works, but when I refresh the page, it does not work anymore. I want to change the value 0 which CSS is ...
0
votes
0answers
27 views

How to add events to Ribbon Buttons

I want to add custom actions to my save or check-in buttons when a page is in edit mode. The IDs from the buttons I want to add events: ...
0
votes
1answer
14 views

Custom property for people profiles

I have added 1 new property to people profile named "DepartementTest" and filled it out foreach user. I have added my new property to my custom display template. I have built a people-dictonary and ...
1
vote
1answer
37 views

How to get the List item Id in javascript while in the display form

Is there is a way to retrieve the List Item Id (ID) that you are currently viewing (Display.aspx from) in javascript. I have searched through ctx and the _spPageContextInfo but have not found any ...
0
votes
0answers
50 views

Set client side choice field to stored value via JSOM

I am using Angular on top of SharePoint for an application. One of the fields I have is a choice column. I am able to get the values and store them in SharePoint/accessible via REST in my create form, ...
0
votes
1answer
23 views

Unable to change a file's fields via REST

I've gone through quite a few blog posts, StackExhange/-Overflow questions, and also Microsoft's documentation, but I'm just unable to change the fields of a file via REST in Sharepoint running on ...
2
votes
2answers
55 views

Creating document set and setting values with REST/listdata.svc

I have a custom document set type and I want to create a custom button on a calendar that allows my user to click a day and create a new set for that day with the date already filled in. I've got the ...
0
votes
1answer
40 views

Unneeded display template js files loading

I have several search results web parts on my page that all use custom display templates. Upon doing some performance testing I'm seeing several js files being loaded that aren't needed and I'd like ...
0
votes
0answers
25 views

JS Link date and time field

I have an edit form with some columns are locked. One column (which is locked) is a date&time column. It will locked perfectly. But the show the result and cut the last 0. So from 16:00 will be ...
1
vote
1answer
49 views

Javascript Object Model SharePoint 2010 Item Level Permissions With Group

I have been trying for some time now to do something that should be simple using JAVASCRIPT CSOM in SharePoint 2010. I have working code that can break list item permission and add a user to an item ...
0
votes
1answer
30 views

Help JS Link Problem

I need please help by my JS Link problem. I want to lock a column in a form when it has a value inside. To do this I try this code. It works but when I click on save the value in the title filed will ...
2
votes
1answer
92 views

Modify list view column titles in a view without changing the list columns

I have a page that contains list view web part. I want to rename the column titles. I have used the following JS script, however it only shows if I click on it. Also, the id of the list view title ...
0
votes
1answer
56 views

JS Link View Overriding for date

I have a date column in my custom list. When i try to override the view of the field by using the TemplateOverride Function, my Javascript wont work on! The same problem occurs for Multiple Choice, ...
0
votes
0answers
14 views

How to target modal dialog when list is set to launch in dialog?

I have a script in a CEWP with a function that will open a modal form, with OK and Cancel buttons, when a list item is saved. When I have the list set to not launch forms in dialog, I can target my OK ...
0
votes
1answer
51 views

Get clicked item ID from list

I have a list with items. Each item contains a link to another page. If a user clicks on one of those items, the specific item should get updated with a date when he clicked it. Now I get a target ...
0
votes
2answers
38 views

ListItem.get_id() return “-1” after adding value in custom list

I am trying to add value in custom list of SharePoint using COM and Javascript. Code work file but i can't see any item added in list. also i got id of recently added item is "-1" This is my code. ...
0
votes
3answers
53 views

How can I get a userid with jQuery in SharePoint 2010?

I'm writing a custom form with HTML and jQuery so that I can then insert the captured information into a list, but I can't use the SPServices library. When I build the list using InfoPath, it ended up ...
0
votes
1answer
35 views

failed to load resource

When my site loads i get error in console Failed to load resource: the server responded with a status of 404 (NOT FOUND) ...
0
votes
1answer
33 views

Set Audience targeting on left navigation with Javascript/Jquery

I want to set Audience targeting on left navigation bar of SharePoint, though there are around 50 links on which i need to set the targeting on. Every time I take a template and restore it, I manually ...
1
vote
1answer
35 views

Get Field order from a list view : Javascript object model

I am getting the fields of a list view using the javascript object model view.get_viewFields() However, this does not return the fields in order which they are configured in the view. It just ...
1
vote
1answer
39 views

Javascript: Check Permissions Button in SP2013 Toolbar

I've been running into a problem with permissions of AD groups occurring within SP groups. It's a well-documented point of ouch that I'm struggling with. Ultimately, I want to loop through all the ...
0
votes
1answer
92 views

How to implement graphs / charts to a custom list in SharePoint 2013

How to implement a bar graph or pie chart for a custom list in SharePoint 2013? I have a custom list with the field: months I want to have a graph/chart to show the usage of the services.
2
votes
2answers
134 views

JavaScript client object model - get current user email id, first name, last name

I want to understand the difference between the following two methods to retrieve the current user email id: Method 1: function getCurrentUserEmail(){ var clientContext = new ...
0
votes
0answers
27 views

Telefon mask - Sharepoint 2013

How to write a telefon mask in Sharepoint +48 xxx-xxx-xxx. Does anyone know about it. The telephone mask should be on a field.
0
votes
2answers
40 views

Change NewFrom using JSLink

I have to customize the NewForm and EditForm using JSLink. Perhaps there is another way of doing this. So what I would like to know are these: How can I make a field required or not depending on ...
1
vote
1answer
34 views

Save/Leave Event after editing a Page

I need to fire some functionality from javascript when a user has finished editing a page and saves it or leaves the editing mode. Is there a possibility to catch the event?
1
vote
3answers
97 views

Get current logged in user and display it on the Site as “Hello (Username)”

I am using SharePoint 2013 Online and I'm looking for some JavaScript and html to display the current logged in user on the site like for example: Hello (Username) If anyone could help or just ...
0
votes
0answers
53 views

Sharepoint 2013 REST API Authentication Problem

I have a Sharepoint 2013 Server and want to read lists in JavaScript using the REST API. I've got it to work in an Application Page just fine but I also want to use this outside of a Sharepoint Site. ...
1
vote
0answers
17 views

Add action on approve button

I want to trigger a custom javascript code when I click on the Approve button on an Approve form (during an Approval workflow). How can I do that?
0
votes
1answer
29 views

Change value when item is approved

I have a MySQL table which contains the name and the quantity of a material. I access it from a Sharepoint page using Javascript and JQUERY Ajax (jsonp). The user adds a request to retrieve a ...
0
votes
0answers
39 views

Workaround for testing to see if a user belongs to Active Directory (AD) group within standard SP Group

I recently implemented a JS/jQuery solution that checks for all of the SP groups to which a user belongs adds the group names classes to the body tag of the pages I am building. It worked very well, ...
2
votes
1answer
34 views

No Javascript, CSS, masterpage loaded in any web application

We've got the following situation. Since today SharePoint central administration and the other 3 web applications are loaded as shown below. No Windows or SharePoint update has been installed since ...
1
vote
1answer
108 views

Get UserId with JavaScript in SharePoint2013 / SharePoint Online

I need to update a person field in a list using a result from a people search (sourceid=B09A7990-05EA-4AF9-81EF-EDFAB16C4E31). The search works great, but does not return the person's ID that I need ...
0
votes
1answer
52 views

Call function new item in a sharepoint 2013 library

I have a list and above this library is a picture button. When I click on this button I would like to call the function which is on "new item". It should appear the form where I can upload the ...