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
68 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
53 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
36 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
38 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
149 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
41 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
75 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
41 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
65 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
75 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
32 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
99 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
133 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
55 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
22 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
24 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
45 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
29 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
136 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
42 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 ...
0
votes
0answers
25 views

How to add SharePoint Display template Language files to visual studio solution?

Since Im working multilingual sites with display template in my project,i need to translate the text shown in display template especially the refiners titles in Filter_Multivalue.js . How exactly can ...
0
votes
0answers
26 views

Sorting lookup column by descending dates in list form in SP 2010

I have a lookup column (Date of Distribution) that pulls a list of dates from another list on the same site. When the lookup pulls the dates, they are in ascending order, so the oldest first down to ...
0
votes
2answers
63 views

Unable to execute javascript user function within Content Editor

Trying to implement some javascript functions within the content editor. I have more advanced code to implement, but am not able to even execute the following code. The user defined function will not ...
0
votes
1answer
87 views

How to Import Excel/Spreadsheet into an existing Sharepoint List using Javascript

I would like import some data of an excel sheet to existing list. I see that this can be done using power shell or by using C#. Can somebody help me in doing this using JavaScript by adding a web ...
0
votes
1answer
76 views

Formatting the layout of multiple promoted links

I am working on a page with multiple Promoted Links and using an inserted table i can organise where on the page i'd like them. The problem occurs when I add the javascript to stack them vertically. ...
0
votes
0answers
19 views

populate user data in list form

I have a list with fields name "User name", "Telephone" and "Department", i want that when user click on add new item and open new form. These 3 fields should get auto populate with logged in user ...
0
votes
1answer
27 views

Manipulate Filters in Javascript

Is there any code in JavaScript which allow to manipulate filter to a library webpart?
0
votes
1answer
36 views

Put a file in a library with a File-Upload on sharepoint designer

I work on sharepoint designer 2013 and I try to put a file(The file can be an image, a text file, a powerPoint, a videos or any type of file) in a library with a FileUpload. I didn't find any code ...
2
votes
0answers
10 views

Determine when a boolean function has changed from true to false [closed]

I have a Print button on a web page that opens a PDF in a new window. I have function, lets call it pWindowNeeded this holds a boolean value. function pWindowNeeded() { if ( newPWindowNeeded == 'Y') ...
-1
votes
1answer
33 views

Function expected _spFormOnSubmitWrapper

I have overridden SharePoint ribbon save function using _spFormOnSubmitWrapper() on my js code. I am getting "SCRIPT5002: function expected" error when I try to check in page when debugger ...
0
votes
2answers
51 views

Get current view in Sharepoint Hosted app

I am developing a Ribbon action sharepoint hosted app where user selects any number of items and clicks the ribbon action to Print the list items. In the SharePoint hosted app page I want to retrieve ...
0
votes
1answer
94 views

How to get item id of copied file from SharePoint javascript api

I want to copy multiple files from one Document Library to another with metadata and column values associated from the copied file to the destination file. I am using SharePoint 2013 JavaScript Client ...
-1
votes
1answer
40 views

count rows in longest sharepoint list javascript

I want to get count rows in a List some have longest name while I am looping through all Lists. I want it in JavaScript
0
votes
2answers
47 views

How to update a Client Web Part / App Part?

When I add a client app part to a page, then make an update to it in Visual Studio (or the app it's attached to) and then redeploy, the client web part disappears wherever it's installed. So every ...
1
vote
1answer
388 views

Get value from textboxes inside dynamic table using selector

I am creating one row every time im clicking on the btn Add row. In this row there is 3 textboxes and one lable(span) and one buttom. I want to reach by selector the value in the (input type:text) or ...
1
vote
1answer
40 views

How to fetch highest value item from SharePoint list

I created a Custom List in developer Site. In that List I created a column called Totalsumma and added some numeric items like "324", "567" etc. How can I fetch the highest value from that column. ...
1
vote
2answers
48 views

Cant fetch SharePoint list column items with JavaScript

I cant run my code. I get this error message: 0x800a139e - Runtime Errors in JavaScript : The property or field has not been initialized . There has been no request or has not been performed. It ...
1
vote
1answer
66 views

Approve Permission to list item in SharePoint 2013

I have to set approve permission using JavaScript client object model. I have used below code to set other permission. But for Approve it is not working. function ...
0
votes
0answers
15 views

Tab when on Calendar page remove the - calendar

I have a calendar and when I am on the page in the tab it takes the list name followed by - Calendar. Is there anyway to remove the -Calendar part which I believe is out of the box?
0
votes
1answer
28 views

Keep selection when tabing after refresh [closed]

I have a page which automatically reloads after a certain amount of time. The problem is I have keyboard only members who can only tab across the page, jumping from anchor to anchor, but when the ...
1
vote
1answer
108 views

Get Display Name from Account Name

I have used SPServices to get a user profile by their name, and in the process, I wish to display their supervisor's name as well. I can pull this name from the user's object, but the supervisor is ...
0
votes
2answers
228 views

Get values from Sharepoint ClientPeoplePicker using JQuery

How do I get value from ClientPeoplePicker using JQuery. I have tried below code, but not getting the results. function getPickerInputElement(identifier) { var tags = ...
1
vote
2answers
147 views

Get multiple list items by respective IDs - Javascript object model / REST API

I am developing a custom ribbon action as Sharepoint hosted app, where the user can select any number of list items and click on the action. On click of the ribbon action, the app redirects to the app ...
0
votes
4answers
135 views

What is the formal way to hide fields from the buit-in New and edit forms using jquery

I am facing some problems in hiding fields from the New and edit forms, if I chose to do so from the Content Type settings and set the column as hidden. As there seems to be some scenarios where these ...
0
votes
1answer
17 views

How to show the “new” gif image when a list's date column is equal to Today()?

We have a list with column "Publish Date" and "Title". User want to attach a "new" gif image at the end of "content" if "Publish Date" for that row is equal to Today. From my understanding, the OOB ...
0
votes
0answers
139 views

Sharepoint 2013 - Redirecting to EditForm.aspx with ID of newly created NewForm.aspx

I've scoured the web for a solution but have unable to find one thus far. I have a master-detail view built from a Request form (Parent) and a Request Details form (Child). I am trying to simplify ...
2
votes
1answer
41 views

How I can reset the People Picker height on IE

I am facing a problem on IE 10 32-bit, where the People Picker will not show the people correctly, as the area seems to be minimized. Here is what I get from IE developer tools:- Now if I manually ...
0
votes
2answers
225 views

Using Client Side People Picker in SharePoint Page Not App

I have seen plenty of examples of how to use the Client Side People Picker in a SharePoint App, but can't find anything related to how to leverage it within a SharePoint Page on a SharePoint Site. I ...