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

how to call executeQueryAsync() to behave synchronously?

Items are saved in jumbled bcoz I am using executeQueryAsync().How to make executeQueryAsync() behave synchronously?
0
votes
2answers
29 views

Value of field based on other value field in New Form SharePoint

Here in the picture you can see how it looks like. I want when in 1 Variable Daten is empty then 1 Anzahl Stunden and 2 Variable Daten to be empty.
0
votes
0answers
21 views

Dynamically change date column sharepoint 2010

In a page layout I have 2 drop down column and 2 date column. Using Spcascadedropdown I am successfully getting the cascading feature for the 2 drop downs and also when the second drop down is ...
0
votes
0answers
32 views

is it possible to retrieve the current value in sharepoint list item before save

I have a sharepoint list. On the edit form of list item i have a custom action button to send the mail containg the contents of the list columns . If the user changes any value in a column and then ...
1
vote
0answers
16 views

'Srch' is undefined Shareponit View

I have a bug in JavaScript, 'Srch' is undefined in file sp.ui.listsearchbox.js, Line: 1, Column: 5673 this bug there is only on view, and I don't have any ideas how fixed this bug. Maybe ...
0
votes
2answers
51 views

SharePoint 2010 Rest API filter statement not working

I am trying to filter a rest query but can't seem to get it to work. During my testing, the following statement works (no filter, a alternate way to get the item I wanted): // sort the list desc and ...
0
votes
0answers
18 views

Maximize Button missing

I am working on a site which was developed on SharePoint 2010 but it's now migrated to SharePoint2013. The maximize button was working while opening the list in 2010 site,but it's not working on 2013 ...
1
vote
0answers
21 views

Infopath 2010 form in Sharepoint 2013 modifying values before save

I have a really complicated problem that I haven't been able to find a solution for and was wondering if anyone can provide some suggestions. Background: I have a SharePoint list that contains 2 ...
1
vote
1answer
44 views

How can I get all versions of a specific list item using javascript?

I need to get versions and his changes. It is possible using javascript client object model? REST?
0
votes
2answers
69 views

Add hyperlink to Sharepoint list item

I need to add a hyperlink to the Sharepoint (2013) list item in one of the columns or make the list item itself as a link. I don't know how to do this. Any help is appreciated!
1
vote
1answer
101 views

SharePoint New and Edit Form Javascript Date Time Field

I have a custom list that contains a date time field. The client requested we trim the time portion of the field to only show two available appointment times of 8:30 am and 1:30 pm. In order to do ...
1
vote
0answers
294 views

Uncaught TypeError: Cannot read property 'toString' of undefined

I have implemented the jQuery UI autocomplete functionality on a input field using JSLink. It works like a charm when I test it using Internet Explorer 9, 10, 11 and Chrome. Some users are however ...
1
vote
2answers
28 views

How to change Active Directory picture?

I got a request to create an App in a on-premise SharePoint 2013 enviroment. The App should upload a userprofile picture to a list and then send the small-thumbnail (sharepoint created) to the Active ...
0
votes
5answers
98 views

How to perform/retrieve a CAML Query in SharePoint Designer

I have a standard CAML query (see below) that I would like to perform in SharePoint designer. How do I take this CAML query and retrieve it's data. Also where do I declare the list to run it against ...
1
vote
1answer
79 views

Enable like function from catalog page via javascript object model - improve this?

The business need is to create a 'channel' page that will display thumbs of videos like a gallery, and I need to enable people to 'like' that content from the gallery page. (Standard disclaimer: I'm ...
2
votes
1answer
33 views

Sharepoint restful api: json return value is structured differently between simialr scripts

I have some odd behaviour when using REST API to query SharePoint lists. In one example, I have to use data.d.results[0] to get to the data, in another I have to use data.d[0] When I use data.d[0], ...
1
vote
1answer
34 views

AverageRating is null in JSOM

I am trying to get the rating field from a SharePoint pages library in JavaScript, after using the get_item('AverageRating') it's returning null. My function looks like the following: var ...
1
vote
1answer
89 views

SP.SOD.loadMultiple Issue

I am trying to load the project context in order to access some data. I am using the SP.SOD.loadMultiple function as follows: SP.SOD.loadMultiple(['sp.core.js', 'sp.runtime.js', 'sp.js', 'ps.js'], ...
0
votes
1answer
65 views

Rest API authentication

I need to use the SharePoint Rest API from a custom JavaScript application (outside from SharePoint). How can I authenticate the user to use the Rest API. I can not deploy a SharePoint app, I need ...
1
vote
0answers
36 views

How to get Web Application url in SharePoint 2013 in Javascript?

I'm looking for a "beautiful" and the fastest way to get only the web application url (don't want to trim or substring or anything else).
1
vote
4answers
202 views

How to get appWebUrl and hostUrl when getQueryStringParameter fails?

I have a sharepoint app with multiple .aspx pages. On different pages I push and pull from sharepoint lists and I would like to send emails. These require me knowing hostUrl and appWebUrl. I would ...
0
votes
0answers
37 views

Change selected items order and merge using Javascript

I am now able to get the selected list items and merge its contents. Is there a way to reorder the selected items before merge? Or is there a way to get the items in the order in which they are ...
0
votes
1answer
33 views

retrieve choice value with jsom

I'm trying to retieve a choice value that a user has selected from a dropdown list with : var oTextColour=oListItem.get_item('myChoice'); But I got null when alerting the value. I have tried : ...
1
vote
2answers
30 views

how to email data from edit from of sharepoint calender list

I have a sharepoint list with 3 columns. User edits the item and updates a column. CLicks on custom button present on the ribbon for send email. The email body should contain the value of 3 columns ...
0
votes
1answer
38 views

Can I disable MDS on a single web part page

I have a custom list on a custom web part page with scripts that affect color coding as well as clickable attachment icons. These scripts do not execute when the list is grouped, and the groups are ...
0
votes
3answers
184 views

How to update Created By Author field in list SharePoint 2013 JavaScript Client Object Model

Just wanting to know how to update a user field, like CreatedBy or Author based on a users name e.g. steven.martin? I seem to have it working fine, from a user id, but not from a user name. get user ...
0
votes
1answer
38 views

Full Example Of JSRequest In SharePoint 2010

I am trying to get JSRequest.QueryString working. I have seen numerous examples like the following: //First we must call the EnsureSetup method JSRequest.EnsureSetup(); //Get a query string ...
0
votes
1answer
98 views

How to authenticate user in SharePoint Online using rest api

I have a website on SharePoint Online and a website on SharePoint On-premise. From my On-premise website i want to create a new list on my SharePoint Online site. To authenticate I used the ...
0
votes
1answer
13 views

email data from edit from of sharepoint calender list

I have 1 calender list. In the edit form of items in the list, i have added a custom button in the ribbon which is responsible to read the data from the edit form and email it to a person. I am not ...
0
votes
1answer
77 views

how to get Relative Url using Jquery in Sharepoint Site?

in my sharepoint site first i want to get Host URL(/Site URL ),and user enter Relative URL in TextBox then i want to append that relative url with Host Url Using JQuery and nedd to check that url ...
0
votes
0answers
29 views

SharePoint 2013: JavaSript Object Model - Inserting 'Reusable Content' programmatically not working

Goal: I am trying to click a button on a page that sets the 'PublishingPageContent' field on another page with data from a 'Reusable Content' list item. Problem: Whenever I go to the updated page ...
0
votes
1answer
42 views

Is it possible to write a CAML query that will update or insert an entry based on its existence?

I'm working with Sharepoint using CSOM and Javascript. I need to cache usage statistics in a List with one entry per user, updating values in a user's list entry when they interact with the site in a ...
0
votes
1answer
88 views

SharePoint 2013: JavaScript Object Model - Caml Query where list item is selected

How could I use a caml query to only get the list items that are selected using the JavaScript Object Model? <Where> <Eq> <FieldRef Name= ??? /> <Value ...
0
votes
2answers
45 views

Get the title of the item in detailed view (JavaScript)

When I click on an item in a list I get to the detailed view. There I need the title of this item. I could find it in the title of the page (when you look on the tab of your browser) but I think it's ...
0
votes
1answer
32 views

Retrieve list value with more than 2 look up field

I have a list 'NewsList' with columns Title, ShortDescription,Image ,Programs,Division and Tag. Here, Programs,Division and Tag are lookup fields with same list name. When I try to retrieve the ...
0
votes
1answer
60 views

Project Server Get project field value using Javascript

I've been using javascript to access to libraries in a site, but now I want to get the value of a custom field in a project. I've been looking to do this but I've found nothing, clientcontext does ...
0
votes
1answer
38 views

The choice SELECT doesn't work, only 1 value boots, and there is a lot of them, help with a code

$().SPServices({ operation: "GetListItems", async: false, listName: "Telekom Group", CAMLViewFields: "<ViewFields><FieldRef Name='Title' /><FieldRef Name='Name' ...
2
votes
1answer
122 views

SharePoint 2013: JavaScript Object Model - Create an enterprise wiki page

I have spent a couple of days trying to fix this problem. Goal: - Click a button on an existing page that creates an enterprise wiki page in the pages library and adopts the default custom layout. ...
0
votes
1answer
109 views

How to consolidate JS for CAML queries with multiple filters?

I'm very new at the entire JS/SPServices concept (and JS as a whole) and I'm trying to slim down the amount of JS needed for a few HTML pages. I have several unordered lists on the HTML page that I ...
0
votes
2answers
53 views

Automatically copy items

We have 6 different libraries. All of them are working with a checkbox column (management). Is it possible to run a script or something like that, which grabs all documents (management = yes) and copy ...
1
vote
1answer
50 views

SP2013: JavaScript Object Model - Setting the value of a list field

How do I set the value of a field in a list using the JavaScript object model? I am trying to click a button on an existing page that automatically creates a new wikipage (which I have done) and ...
5
votes
6answers
855 views

Get a SharePoint ListItem ID from a List where the 'Title' field is a specific value in JavaScript

I am trying to extract the ListItem ID of a List which I am currently NOT in based on a field value in that List. I cant find anything that explains how to do this. So, to explain. I have a Custom ...
3
votes
1answer
39 views

Optimizing taxonomyTerm request

I'm working on a custom navigation webpart for SP2013 using the JSOM. Currently, a part of fetching the data from the termstore involves fetching all the terms and then getting data from the ...
0
votes
1answer
87 views

O365 Patterns and Practices JavaScript Injection / Embed JavaScript

I have a vanilla O365 developer site which I'm deploying the app in the JavaScriptInjection example here - ...
0
votes
1answer
49 views

client side IDs of share point elements

I need to hide some menu items that come OOTB on sharepoint pages. I can do this through javascript/jquery, but am not sure how consistent are the client side IDs of various elements on SP pages. I ...
0
votes
1answer
43 views

Reset sharepoint lookup with None option using jquery

How to reset the lookup value to None in Editform.aspx page using Jquery. I want to empty the lookup dropdown if text box does not have any value . Here is the code which i have tried.I was able to ...
0
votes
2answers
46 views

Accordion in Sharepoint

I have to create a horizontal accordion with autoplay functionality. I found a code on the "http://www.designchemical.com/blog/index.php/jquery/jquery-simple-horizontal-accordion/" It does not ...
0
votes
1answer
34 views

JSOM request limitations

I'm building a custom navigation for SP2013 that uses termstore to manage the menu items reasonably. This technet article covers basic termstore limitations, but it doesn't touch on the following ...
0
votes
1answer
35 views

Calendar View to Hide 12:00 AM

Dealing with SharePoint 2007 Calendar view. We are trying some javascript via a content editor to hide the "12:00 AM" when viewing the data from a calendar view. It's only hiding the first ...
3
votes
1answer
82 views

Retrieve subsites from site collection sort last modified date using CSOM

I want to retrieve subsites from current site collection. And it should be order by last item modified date. I am able to retrieve subsites by following code : channel_context = ...