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

Need suggestions to attach JavaScript function to SharePoint search button click

I need to attached custom JavaScript function to SharePoint 2013 search button click. When user enter some text in search box and click search button or click "Enter" key, my custom JavaScript should ...
1
vote
0answers
53 views

Managed Metadata Global Navigation

I’m using managed metadata to create global navigation on a SharePoint Master Page. I understand that a managed metadata term set can only be applied to a single site collection. To bypass this I’m ...
-1
votes
2answers
31 views

how do i create a custom UI for a list column

What is the best way to create a custom feature to customize the UI of a list by filling in the column and/or field green when the value for row item = yes/no?
1
vote
1answer
48 views

How to change the font of column name

Is there a way for me to change the font size/ family for a particular column name for Default New Form web part. (jquery/ SPD) Like the following image (diff from default style) Thanks!
1
vote
1answer
75 views

Check if View (GUID) is displayed on the current ASPX page

Result of eXtreme Programming.. (and too early to drink wodka) I am sure there is a one-liner to check if a View is displayed on screen function webPartOnScreen(guid) { guid = guid.replace('{', ...
3
votes
1answer
42 views

Trying to Skip an empty field. Returns null instead

I am trying to pull data from a list, but skip any that are empty. Below is the portion of my JS link that Is having this error: var description = document.createElement("a"); description.innerHTML = ...
-1
votes
1answer
52 views

Getting list items in SharePoint Hosted App for Office 365

I want the code snippet for Getting the list items and Show it in the App page. I'm creating SharePoint hosted app for Office 365. How do i get the list item values? Thanks in Advance
1
vote
1answer
45 views

Reset ratingcount for list item using javascript

I wish to reset the ratings for an item after a list item is edited. I can get the Average rating to be reset back to 0, but not the ratingCount. How can I do this? The code I am using is var ...
0
votes
1answer
23 views

Birthday Icon on the Curren Date

I have a Calendar which show the birthday reminder for our users , everything is going good but now I want that my calendar will show a small pic on a current date if there is anyone's birthday in ...
1
vote
1answer
47 views

Custom pagination

I have a SP list called "Company" containing 6000 items. Also I don't have access to central admin nor I have a site collection administrator permission(also no designer access). I want to create a ...
1
vote
0answers
58 views

Active ADFS authentication, token is always invalid

I am attempting JS-based ADFS authentication to consume SharePoint resources. I am using active authentication (browserless) to get a SAML token from the ADFS server. A portion of the XML I get back ...
0
votes
0answers
31 views

Javascript with MDS in Visual Webpart

I need to include a Javascript file in my visual webpart, but using the Minimal Download Strategy. The problem is when i would like to include a SharePoint:ScriptLink tag in my ascx file, i have some ...
0
votes
0answers
20 views

Webpart that uses CSS fixed positioning

I have a two column webpart page. On the left side is a link list webpart, which I would like to stay in sight as the right side scrolls. Is this possible? I did see an example which did it with the ...
5
votes
1answer
67 views

is current ASPX page a List or Library page?

Is there a better way of testing if the current ASPX page is a List (or Library) page? I now have: if( !( document.location.pathname.indexOf('/Forms/')<0 && ...
1
vote
0answers
41 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
100 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
161 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
25 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
48 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
27 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
95 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
33 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
37 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
87 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
29 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
86 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
34 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
90 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
60 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
52 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
55 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
67 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
60 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
27 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
171 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
38 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
149 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
24 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
155 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
57 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
46 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
35 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
121 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
148 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
23 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
33 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
39 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 ...