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
0answers
26 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
33 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
77 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
32 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 ...
0
votes
0answers
10 views

Custom field as sandbox solution

I am using SharePoint 2013. I need to create a field. The field should work as a Auto complete lookup. The field should look up a given list's column values and suggests the available items as the ...
0
votes
0answers
9 views

Javascript fails after data query Infopath Browser Enabled form

I generally use JavaScript in a CEWP to manipulate objects in my InfoPath browser enabled forms in SharePoint 2010 with a bit of success, however, I've run into an issue using JavaScript in my forms ...
1
vote
1answer
24 views

Sharepoint Hosted App Unable To Add Groups

I'm writing a SharePoint hosted app that allows the user to create groups and assign users to them. However, every time I run the code, it gives me a Permission Denied message, saying I don't have the ...
1
vote
0answers
34 views

Image file corrupted upon upload via REST

I have been attempting to use REST to upload image files to SharePoint but am running into the same issue again and again. The issue is that while the image file uploads to an image library, it shows ...
0
votes
2answers
27 views

Allow users to add elements to a list but do not allow them to view it - client side

I have a form which users fill in, and the information is inserted into a Sharepoint List using Javascript. I don't want to allow the users to view the list, but add elements to it using Javascript. ...
0
votes
1answer
31 views

Disable a site collection column inside lists's quick edit grid

I read the following link on how SharePoint 2013 supports disabling a site collection column inside the list's quick edit grid link. so I tried to apply the same inside a custom list. So I wrote the ...
0
votes
0answers
63 views

Losing the selected drop down value when reloading the page - JSLink

I have an EditForm that I am using JSLink to run some javascript that gets the Content Type and then sets the options in a drop down box according to the Content Type. This works fine, but now the ...
0
votes
0answers
37 views

Add SharePoint form fields in content editor web part

I have one Feedback list with columns like category, contact name,contact email, comments and I want to create one feedback form. First of all I need to use Content Editor Web Part only for that with ...
2
votes
1answer
58 views

Sharepoint 2010 get all list items from all lists with javascript

I want to get all list items from all lists in SharePoint 2010 with JavaScript. I always get the error: SCRIPT5022: The collection has not been initialized. It has not been requested or the ...
0
votes
1answer
46 views

accessing and modifying page properties in sharepoint using javascript / CSOM / JSOM / Rest api

I have a custom field "webPartId" in my page property Whenever user clicks save, i want to update the field I am not able to get any code snippets for that! The closest i could reach is finding ...
0
votes
0answers
13 views

Retrieve the values/ text from the Sharepoint Choice list using simple JavaScript

Project Description: I need a JavaScript that can give the selected choices in from one menu in the multi-line text box as a list. let say I have a Menu that have checkbox choices, choices are A,B ...
0
votes
0answers
97 views

implementing fullcalendar with angular js

I am building an event scheduling app by using angular js framework and fullcalendar plugin. I tried to google and implement different ways to make the calendar visible but it's not working. I have ...
2
votes
1answer
41 views

Update readonly field using REST API

I am trying to update a list item using Rest API. Following is my code. It works and it updates all fields except "RichMessage" which is a Note field with RichText="TRUE" and readonly. I have tested ...
1
vote
0answers
21 views

Access ADFS-provided information in CSOM

I have hit a bit of a roadblock in some recent work, and I'm not sure how to proceed. Goal: be able to access a user's first and last name in JavaScript running in a SharePoint 2013 page, through the ...
1
vote
1answer
21 views

ECMA only working in edit mode

I'm sure I'm missing some file but this script work when page is in edit mode but not when it is in display mode? <script type="text/javascript"> ...
0
votes
2answers
32 views

Enable major versioning javascript

How could I enable major versioning on list? My code is not working and I don't get any errors. _spBodyOnLoadFunctionNames.push(onPageLoad()); function onPageLoad() { ...
0
votes
0answers
16 views

Jquery hide/show function in Sharepoint 2013 working on one laptop, but not the other

I have a simple jquery change method which will hide or show form fields based on a selection from a dropdown. the issue i am having is the jquery function is working on my laptop and 5 others, but ...
1
vote
4answers
71 views

Best practice to minimize/compress/bundle css and js files in VS SharePoint solutions?

We are using a large VS 2012 SharePoint solution. We are using many css and js files. We would like to increase the performance. What is the best practice to minimize/compress/bundle css and js files ...
0
votes
0answers
13 views

Is there a bug with File Preview on SP2013 with Library webparts and Wiki pages?

I've encountered an issue that I would like to confirm as a bug or not. Essentially if you try to use the 'Open Menu' ellipses on a wmv or mp4 video file via Document Library (listview) webpart on a ...
0
votes
2answers
32 views

Set Managed Metadata Values via REST

I am able to query and get an array of all my term names and guids within a Term Set, but now I want to be able to set these via REST. When I look at the structure in JSON the section with my Managed ...
0
votes
1answer
27 views

Unable to set value of dropdown on page load

I am using SharePoint 2013 online and I have created a form for my list using Infopath 2013. It has a combination of text fields and dropdowns. I am able to set the default value of text field using ...
0
votes
0answers
18 views

How to convert string to byte array and create document with that byte array using REST Queries

I am having with requirement to create a document with some specified string. I am trying to convert that string into byte array, array buffer. I am able to create a document. But unfortunately that ...
-1
votes
1answer
24 views

get a randomly picked background image to appear as the background image for a Div

My HTML Contains 1)have js file contain java script function function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min)) + min; } ...
0
votes
0answers
26 views

calculated column get_item returning 0

Using a calculated column, I am trying to print the value of a column for the current selected row into the console LOG, but all it ever displays is 0. Can anyone see what the error might be? The ...
0
votes
0answers
41 views

Hide “Share With” Menu from particular sub site

I want to hide following things from particular sub site. I want to hide "Share With" menu from site actions I want to hide "Share With" menu from Ribbon for list view "Item" or "Document" tab. ...
0
votes
0answers
29 views

Can not prevent editting a field inside the Quick Edit using JSLINK

I have a site column named "Item Number" with internal name of "ID1", as follow:- PS H:\> $web.Fields["Item Number"] FieldValueType : System.String PreviewValueTyped ...
0
votes
0answers
15 views

How to separate BCS list and form in two site pages?

I am using a BCS and External Content Types in SharePoint to Update SQL Tables; however, I would like to have this two parts separated in different pages.
0
votes
1answer
30 views

color coding in a list view is lost when any of the columns are arranged by clicking on the column header

I have some JavaScript that will colour row in a SharePoint list View web part depending on values in certain column. This part works fine and the rows are coloured correctly upon page load. The issue ...
0
votes
0answers
37 views

modify the min length for the “People or Group” auto complete

i have a "People or Group" field inside my team site, and currently the built-in autocomplete will work after typing 3 characters. so how i can modify this to allow the autocomplete to work after ...
0
votes
2answers
63 views

get current user phone number using javascript sharepoint 2010

How do i get current logged in user phone number. I have a list with field name Requestor, Department and Phone Numver and using below code: <script src="/Scripts/jquery-1.10.2.min.js" ...
2
votes
1answer
25 views

Missing properties of _spPageContextInfo after page load

I have a script that provision site collections under a specific managed path. In these site collections, I have sub webs with page libraries in which I have several different pages with custom ...
3
votes
1answer
49 views

Modify the “Select People” dialog height

I am using IE 10 32-bit & windows 7 . now the "Select People dialog" will look as follow: where only part of the first user will be displayed! Now the whole problem is with the inner style ...
1
vote
2answers
39 views

Is There A Way to Determine if More Than One Option in Custom Dropdown Field?

I have a custom dropdown choice field that is created using jQuery after a date is selected and a choice box is selected as "Yes." Here is that function: function queryEvents(date){ ...
1
vote
1answer
41 views

Hiding Fields in an InfoPath Form

Is it possible to hide fields in an InfoPath 2013 field based on the value of another field? Possibly through JavaScript? I have an InfoPath 2013 form that is linked to a SharePoint 2013 List, and ...
0
votes
2answers
51 views

Open a SitePage in a Dialog in Javascript

I'm trying to open a SitePage in a Dialog. I currently arranged it for a Form of a ListItem, but when I apply the same code to a SitePage I get the following correlation error: An exception ...
0
votes
1answer
28 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?
1
vote
2answers
78 views

Custom Jquery script to hide fields inside my New & Edit form is not working on Iphone safari web browser

I have defined the following jQuery script to hide some columns inside my Edit & New built-in forms:- $( document ).ready(function() { $('.ms-formtable nobr:contains("Item ...
0
votes
3answers
76 views

Where is MicrosoftAjax.js located/did something just change in SharePoint Online?

I am using SharePoint Online and was referencing the MicrosoftAjax.js file via /_layouts/MicrosoftAjax.js for the past several weeks without issue. A week later and no changes to the system and it is ...
0
votes
1answer
34 views

Setting the value of the PublishingFieldImage

I want to insert a image from another media resource. This will be uploaded into the site assets folder (or a defined one). These selection will be made in a app part, that will be opened up in a ...
0
votes
1answer
18 views

Which should I use on SharePoint 2010 list item forms? JQuery or InfoPath?

I'm editing some SharePoint 2010 list item forms using InfoPath 2010 and some with JavaScript/JQuery. I know that Microsoft will not support InfoPath after SharePoint 2013. InfoPath is easy to use to ...
0
votes
1answer
22 views

Autoincrement with Fresh counters everyday

YYYYMMDD-XX Suppose List Item is created today Its Unique ID should be 20150604-01 20150604-02 ..... 20150604-99 Suppose Item is created Tomorrow Item Unique ID should be 20150605-01 ...
0
votes
0answers
31 views

SharePoint 2013 reservation booking calendar resource field data are misplaced in new item through modal dialog

I am displaying all the resources events in SharePoint 2013 default calendar view with the help of below script and it's working fine. But when I tried to create new event through modal dialog of ...
0
votes
0answers
16 views

HTTP request on lists.asmx GetVersionCollection method

While looking for a HTTP REST method to return Document Version History, I stumbled on the GetVersionCollection method. However, I have not found any syntax showing how to make the call from a ...
0
votes
1answer
83 views

Hidding Forms; fields using standard jquery versus using JSlink. which approach is better

I want to hide some fields from my Edit & New forms, and i need this to apply to all the subsites. now if i hide the columns from the Content type they will appear again when users modify these ...
-1
votes
1answer
25 views

count items in the list

function onSuccess() { var longest = ""; var listString = ""; var Count = 0; var listEnumerator = listCollection.getEnumerator(); while (listEnumerator.moveNext()) { var currentItem = ...
1
vote
1answer
34 views

App Part : javascript library loaded only after clearing the cache

I've created a provider hosted-app for SharePoint and I've added a Web Part into the App to be able to view my app from the SharePoint host web. In the app web of the project, I've included various ...