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)

1
vote
0answers
39 views

Create a custom permsetup.aspx and add extra text fields for new groups

I have the following requirement: When a user creates a new site via Site Settings\Site Content\New Subsite, and he selects "use unique permissions", the user is redirected to the page: ...
0
votes
1answer
68 views

Get field value in modal list item display dialog on Sharepoint Online

I have a basic custom list with items that open in a modal display form. I need to get the value of one of the fields, store it in a javascript variable, and further process it. How do I get the field ...
7
votes
0answers
153 views

When JavaScript runs

Working on an overview of all possibilities of adding JavaScript. Can someone confirm Custom Actions run **after JSLinks** By execution order: Page Scripts using <script> tags or scriptlink ...
0
votes
2answers
24 views

SharePoint Forms Fields depend on User

I hope you all are doing good. I have an query regarding SharePoint forms I hope if anyone can help me out. I want to create a SharePoint form where a member from any department can ask for a leave, ...
0
votes
2answers
41 views

Display Profile Image, Can't Select Picture Url

I am attempting to retrieve some profile properties for the current user, and am having a hard time with the profile picture Url specifically. Version is Sharepoint Foundation 2013. When I open the ...
0
votes
2answers
21 views

Color coded calendar 2007 versus 2013

I have a calendar color coded in SP 2007. Its working good. I used the same code in SP 2013, but it doesn't work there. Any Suggestions? <script language="javascript" ...
0
votes
2answers
81 views

Get User ID from ClientPeoplePickerWebServiceInterface Web Service through Javascript

I am using this webservice /_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser to build an autocomplete solution for my SP app. The problem is, the ...
1
vote
0answers
28 views

JavaScript: add AD security groups to list item permissions

I use the code below to group permissions on list items. This works fine for SharePoint groups. How'd I do this for AD security groups? (SP2013) restrictToGroup = function( a ) { var ctx = new ...
0
votes
1answer
39 views

Logical operators are not working in JS file

Everything is fine I am able to fetching the data from SharePoint 2013 List using CAML query in my js file. But when i try to get the data via dropdown conditions my code is executing in the else ...
1
vote
1answer
35 views

Showing Item context menu in custom Javascript page

I have created a Javascript page, that uses some REST calls to query a list (actually several lists) and shows some highly customized output. All this is working quite good. My final requirement is, ...
1
vote
2answers
74 views

Delete all items in Recycle Bin using javascript

Is there a way to batch delete all items in the recycle bin on the client side in SharePoint Online? I've tried using javascript:emptyItems() in the browser but this appears to time out after ...
1
vote
0answers
26 views

request query using jsom for project server (ps.js) another user

request query using jsom for project server (ps.js) another user i need request a query using another user, no my current user this is possible ? I'm using JSOM with ps.js for project server 2013 ...
3
votes
1answer
80 views

Getting item id from newly created item

I am using SharePoint 2013 Enterprise version. I am using below rest api code to add the record I kept below code in common js file function CreateListItemWithDetails(listName, webUrl, newItem, ...
0
votes
0answers
32 views

Calculation on different types of leaves in JavaScript?

I have a list (List A) with different type of leaves like casual leave, sick leave, earned leave.. So in this list management will give some leaves to an employee per year like Casual leave=20 days ...
4
votes
1answer
79 views

SharePoint CSR Conditional Formatting is working but row highlighting is not

I was testing the flexibility of CSR and came across a problem which i am not able to resolve . I have created a list which contains product details like Total Sales and Sales Target . I am trying to ...
1
vote
2answers
47 views

How do I reliably inject a meta tag onto a SharePoint page without editing the master page?

I don't want to edit any master pages for obvious reasons given that I am on SharePoint Online. But I am trying to achieve responsiveness on my sites. For this, I would really like to use the ...
0
votes
1answer
44 views

SP13: Adding Shading to Custom List

I have a custom list created in SharePoint 2013. I have few lines of css in a script editor. When I add Shading style under modify view the css added stops working. To add the shading without using ...
-1
votes
1answer
51 views

javascript countdown in html code of homepage [closed]

I added a javascript in a contenteditor on my homepage, the javascript is a countdown to a specific date in days. When I put it in my HTML it works well, but after a day the counter shows me first ...
1
vote
0answers
57 views

toLocaleDateString() formatting

I am using the above method to format my date, but for some reason it is formatting the date using the English US format: MM/dd/YYYY even though the locale for my site is English United Kingdom. I ...
1
vote
1answer
58 views

Get start and end date of current week which starts in one month and ends in another month

I have to get start date and and end date of current week. I used this code but end date is getting previous month name if week start in one month and ends in another month. Date.prototype.getWeek = ...
0
votes
2answers
50 views

SP13: Changing Edit Icon

I am sure this is possible, however, not sure if this is an out of the box fix. Goal: To remove the edit icon ( )and add the word "edit" Is there an out of box solution?
0
votes
0answers
22 views

SP 2013: Using EditDocumentTemplate createNewDocumentWithProgID commands to activate macros in Word Documents in Document Libraries

In my Document Library, I want to store macro enabled documents. OOTB Document Library functionality disables stored template macros. Research indicates that this results from the way that Sharepoint ...
5
votes
1answer
164 views

what are the differences between JSLINK and Client Side rendering in SharePoint Server 2013

I have read many articles about client side rendering & JSLINKs but i am unable to differentiate between these two topics. now I have used JSLINK to implement 2 things inside my SharePoint ...
0
votes
1answer
35 views

SharePoint 2013 - Best alternative in building web forms for JavaScript Developers

Within SharePoint 2013, if creating webparts and deploying them is not an option, what would be the next best (most flexible approach) for front-end JavaScript developers, in creating forms for ...
1
vote
2answers
120 views

Color code due date field if 6 months before current date

I have this specific requirement to color code the due date field if it's value is less than 180 days (6 months) compared to today's date. Is this possible with Javascript/JSLink ? Thanks
1
vote
0answers
17 views

get site path using a group id

I have a list of groups a user is member of including the groups' name and id. Now I need to construct URLs to the sites those groups are used in. (I can assume there is 1:1 relationship between group ...
0
votes
2answers
23 views

SharePoint 2010 Parse created by Lastname, Firstname to Firstname Lastname

Is there a way to parse the created by displayed user Lastname, Firstname to be displayed Firstname Lastname. I do not mind if this is done through JavaScript as a transposition after the page loads.
0
votes
3answers
98 views

How to set content type with JSOM

I am able to create new list items programmatically with JSOM, however I can't find the correct code to set content types on the new items. I have tried the following two methods : ...
0
votes
0answers
44 views

How can I add a print button to an InfoPath form? SharePoint 2013

I cannot create a print button that works in browser-enabled view. Is there any method make it. I have tried with thisXdocument.Print(), but thisXdocument does not exist in my context. I need to ...
0
votes
1answer
44 views

How get multiples users by id with REST API?

I need get multiple users by ID with REST API. I looked this question: How to get multiple users with REST API But is not answered. I've the ID's in an array: var people = [426, 352, 155]; I've ...
0
votes
1answer
32 views

Get list item when its null or undefined

So I have this code while (listItemEnumeratorlistReady.moveNext()) { footerListItem = listItemEnumeratorlistReady.get_current(); arTitle.push(footerListItem.get_item('Title')); ...
0
votes
1answer
93 views

SPServices GetListItems from External List causes HTTP 500 Internal Server Error

My function only works when I'm using my SP_ADMIN user. But when I'm using another user I receive the following error message from the console: 500 (Internal Server Error) What's wrong with this ...
3
votes
2answers
119 views

How to design the SharePoint List NewForm.aspx?

In the SharePoint List NewForm.aspx I have to design the form like two text boxes side by side with the headings? Is it Possible to design like that? Can any one help me on this issue?
0
votes
0answers
22 views

How to expand the group name within a list with REST

I have a list with a People/Group field that I want to access via REST call: /administration/_api/web/lists/getbytitle('Permissions')/items?$top=10000 The problem is that it just loads the list IDs ...
0
votes
0answers
23 views

Unable to access list data in another site collection in Office 365 SharePoint Site Collections

Let us consider two site collection urls in Same Web App in Office 365. http://webapp/sites/siteA http://webapp/sites/siteB Both sites have 'List' with same name Following code works for same site ...
1
vote
0answers
35 views

Conditional visibility and calculated expressions for new and edit forms

We need help regarding visibility and dynamic calculated expressions inside new and edit forms (not the standard calculated fields from SharePoint). Until now we used mostly Ardevia Rich Forms for ...
0
votes
2answers
85 views

how to retrieve all surveys in my site using javascript/csom

I have created some surveys using survey app,I want to list all surveys existing on my site using client object model.
0
votes
2answers
62 views

Call the server side validations on SharePoint List Form

I have some custom JS code that would help me validate fields on a list on the client side. Just in case, if fields pass the client side validations, I'm displaying an alert saying "Your item has been ...
0
votes
1answer
31 views

Removing Sharepoint injected classes

I am trying to remove a class injected my sharepoint, since it's breaking my modal dialog box. This is the code: function popup(myTitle, myBody) { //the modal dialog var element = ...
0
votes
1answer
77 views

Iterate through list items stored in array JavaScript

I am currently using SharePoint 2013 Online and I have some code which I am running to retrieve list items. I can successfully get the list items and store them in an array however I then need to ...
0
votes
0answers
50 views

Set Content Type of New List Item Using JSOM

I am trying to add folders to a library using JSOM. I need to set the content type of the new library items, however I am not finding the documentation on how to do that anywhere. var ...
0
votes
2answers
88 views

Query Membership of Active Directory Group in Security Group in Sharepoint

I have a Sharepoint group, and within this group, is an Active Directory group. I want to know if I can send a query to find if the current user is a member of the AD group, from Javascript. I do ...
1
vote
2answers
82 views

show Doc icon of SharePoint document library using jquery in jqgrid

My scenario is to show doc icon in Jquery Grid for sharepoint document library. My Data is in JSON. here is how i am fetching the data and building the array object and Pass it to JSON.Now in my ...
0
votes
1answer
48 views

Javascript API for Office error

I am trying to read from an excel file to use the data in SharePoint. I recently discovered the Javascript API for Office however I can't reference the library without an error. I use the following ...
1
vote
1answer
37 views

Ribbon Button CommandAction doesn't work

I have two ribbon buttons: <?xml version="1.0" encoding="utf-8" ?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="CustomCustomRibbonTab" ...
6
votes
1answer
98 views

(ClientSide) set/update JSlink to CSR files for (all) WebParts, Views, Fields

Working on iCSR.github.io to make CSR development a bit easier. I now want to make it as easy as possible to set the JSlink connections on WebParts, Views or Fields. I have code snippets to do it ...
3
votes
1answer
41 views

How to query data on app web from host web

I need to query a list located inside a SharePoint hosted app, when located on host web, using JavaScript (REST preferably). I control both app and host. It's possible to communicate with an app ...
1
vote
1answer
42 views

HTML Webpart JavaScript works in EditForm.aspx but won't in AllItems.aspx

I have a HTML Webpart with the following code (piece): <script type="text/javascript" src="../../SiteAssets/jquery-1.12.0.min.js"></script> <script type="text/javascript" ...
1
vote
1answer
40 views

Temporary individual list or view for users

I want some kind of dynamically created List for every visiting user in SP 2013. The data lives in multiple lists and I want it to be aggregated in the target list/view. When a user visits the ...
0
votes
0answers
31 views

ContentType problem in JS after install of SharePoint Cumulative Update

After installing the SharePoint 2013 Cumulative Update of December 2015, i have a very strange issue in my SharePoint 2013 portals the situation before I install the CU (the farm was in SharePoint ...