A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [jslink]

JSLink is the new feature introduced in SharePoint 2013, loading off the burden of XSLT webparts from the developer's mind.

Filter by
Sorted by
Tagged with
1
vote
3answers
4k views

JS Link is overriding multiple list

I am using JS Link to override some columns on a Sharepoint 2013 List view. I have a Page with multiple list on which some list are different Views of the same List and other are Views from another ...
1
vote
1answer
1k views

Updating current item using jslink

I am working on a solution where in I have to update current item based on a button click. I am thinking of using JSLink to generate button with each row, when this button is clicked i have to refer ...
1
vote
1answer
606 views

Modify/Change the CSR for view page for a POST in a Blog Site

I am working on CSR to add a button and change the look and feel of like and comment button for a Blog Site. Currently I am able to achieve this, and it is functional(Button). I am using the below (...
3
votes
1answer
4k views

JSLink and Javascript Events

I have customized the view for my SharePoint 2013 List using a JSLink file but have not been able to get the buttons I added to the page to respond properly. They cannot find any DOM elements when the ...
3
votes
3answers
15k views

JSLink: Render FileLeafRef with Title in document library

JSLink is the greatest thing since sliced bread. Not. There are some weird issues concerning standard stuff and I'm not sure whether these are limitations or I'm doing something wrong. I want to have ...
0
votes
1answer
339 views

List view is broken after applying jslink

I used client side rendering on a list view to override how the items inside it should be rendered. The javascript: var overrideContext = {}; overrideContext.BaseViewID = 3; overrideContext....
0
votes
0answers
955 views

using jslink to color code totals in a view when grouping

Im using JSlink to color code some cells in a view which works fine however i also need to color code the totals of the columns that are grouped. Does anyone know how you can access the totals when ...
2
votes
3answers
7k views

JSLINK for multiple list views

I have a list that i used for many view as a web parts in the home page, so all the view are from the same list. what i want is to customize my view in a specific design, so i have to apply a JSlink ...
1
vote
0answers
268 views

How to group fields of a list under various tabs with JSLink

A simple tabbed view is achieved but I want that when the user clicks a particular tab then its corresponding fields are available for input only.
4
votes
1answer
3k views

Create Edit Control Block (ECB) on View with JSLink

I have a question about ECB: In Sharepoint 2013, how to create Edit Control Block (ECB) in view with JSLink. I use JSLink to modify the default view, but I can't display the ECB context menu with "...
2
votes
1answer
2k views

JSLink get field with url

I have a field in my list, which is a url (field type is single line of text), and in my JSLink, I want to retrieve this field to assign it as src for an image, but when I use CurrentItem.SrcUrl, it ...
2
votes
1answer
4k views

Modifying ListForm Save & Close button through JsLink

I am currently porting a internly used SP Farm-Solution from 2010 to 2013 and am struggling with the new concept of JsLink. In the 2010 solution we had overwritten the RenderingTemplate ListForm to ...
4
votes
2answers
2k views

SharePoint - How to get field value using JSOM + JSLink without Async call

I'm fairly new to the JavaScript Object Model (JSOM) and I want to do a simple call to get a field value. Very easy in C#, but I can't seem to get a field value even though I have the ListItem: ...
3
votes
2answers
16k views

Open List Item in Modal Dialog from SharePoint List View Page

I have SharePoint All Items Custom List View which I would like to customize using JS Link feature. Currently whenever user clicks on "Title" link on any item it opens Listform.aspx with detail ...
4
votes
1answer
10k views

SharePoint 2013 Custom CSR Render Mode for NewForm (also for DispForm and ViewForm) renders input controls apart from labels

For several weeks I am developing some features for my new projects on SharePoint 2013 using new technology called Client Side Rnedering (CSR). Until now there have been almost no issues except lack ...
0
votes
2answers
5k views

How to cast a date column value in JSLink javascript, and how to increase this date variable?

I am using sharepoint 2013 online. I have created a custom list. On this list I have used JSLink to show an icon in a column. I would like to do some logic to show a red or a green icon. I have now in ...
7
votes
7answers
4k views

JSLink (js)file is updated, but still can't see any changes, maybe caching?

I am using SharePoint 2013 online (Office 365). I am following some JSLink tutorial where I am showing indicator icons in columns. It looks like the .js file is working, but when I change the file and ...
1
vote
2answers
3k views

JSLink and office 365 : I don't see the Content Type “JavaScript Display Template” when adding js file

I am using SharePoint Online 2013. I try to follow some JSLink tutorial to show indicators in some columns on a custom list. I am stuck in the step where I need to upload and set the ".js" file into ...
5
votes
2answers
12k views

Filter out items in list view using jslink

I have a list view, containing GUIDs, where I want to filter out some items depending on the result of a REST call made in the onPreRender function in my JSLink. The REST call fetches GUIDs from ...
1
vote
1answer
3k views

SharePoint 2013. JSLink (CSR) for field Type=“User” on EditForm

How to create custorm render for field type="User" on EditForm? I need to replace standart peoplePicker control with my custom render. Code below work without exeptions, but don't set 'Sponsor' field....
2
votes
1answer
5k views

Using Lookup Value in a JS Link Context - SP2013 Foundation

I am tasked with styling some lists for our Intranet Home Page. While I was fairly capable of this in SharePoint 2010 using Data Views and XSLT, I am trying to learn the new (and I think better) way ...
4
votes
1answer
545 views

JSLink Status indicators alternatives?

I am trying to have my document library views show indicators next to documents based on the values of certain fields. I have spent considerable time trying to find a solution using JSLink but it ...
8
votes
4answers
2k views

XSLT or JSLink (which one to use?)

If I have the option of using XSLT or JSLink, which one shall I chose? I don't know anything about JS Link and so far I have done all work in XSLT but I have heard JS Link is the future as there ...
8
votes
0answers
798 views

How to get the user profile property that is of type Managed Metadata using JavaScript?

I have apply JSLink to the custom list's new form. I want to query the user profile property which is Managed Metadata for entered user. I wrote below code which simply gives the string. But I want ...
3
votes
2answers
3k views

How to get List Title in JSLink?

I have applied a JSLink to the custom list's new form in which I want to get the Current List title to access the list column further. My code is: (function () { var DepartmentCtx = {}; ...
2
votes
1answer
2k views

Unable to apply JSLink to the field

I want to apply the JSLink file to the field to render it differently. <Field ID="{2F30125C-D2C9-459F-9AC5-1796F52C0C4B}" Name="oiplbDepartment" StaticName="oiplbDepartment" Type="...
0
votes
2answers
266 views

JSLink doesn't work when it got redirected from list item page

I have a JSLink file to customise an external list and list items. context.Templates.Fields["VM_NAME"] = { "View": VmNameRenderCallback }; SPClientTemplates.TemplateManager.RegisterTemplateOverrides(...
5
votes
2answers
6k views

How to apply JSLink to List's New Form in Visual Studio?

I have content type say "Departments" and applying to the list named "All Departments", there is one field in content type that I want to apply js link to render it differently I found some solution ...
5
votes
2answers
2k views

JSLink makes search textbox to disappear in Page Library Custom View

I have created a view in a page library and added a custom JSLink that should render the items as follows: Each item is a Page in the Page library. The problem is that when I add my customJsLink.js ...
1
vote
2answers
3k views

Can I change the display name of column in a listview using JSlink

I've a requirement to change the display name of a column in only one view, I've to show 'Responsible' instead of 'Responsible Person'. Is this possible by JSlink ?
1
vote
0answers
243 views

Does JSlink work in ListViewByQuery Control?

I added a ListViewByQuery control in my Application page. I added few ViewFields using SPQuery, I customized the rendering of those fields using JSlink, The fields are showing properly in ListView, ...
0
votes
3answers
3k views

JSLink set in list definition (schema.xml) not being loaded

I have created a custom list definition and detailed in many articles across the net I have specified my file in the JSLink property of the view. For some reason it is no longer working. <JSLink ...
1
vote
0answers
433 views

Custom JSlink template intermittently not downloading for anonymous users

I've developed a JSLink template that works fine. I've tested it with authenticated and anonymous access and it works flawlessly. The problem that i'm seeing is that when I open the page with the LVWP ...
3
votes
2answers
1k views

How to ensure client side rendering of list item is applied when 'Grouping' is enabled in the list view

I've followed some instructions to create a JavaScript file that renders the Title column of a document library as a link to the file in order to obscure the less user friendly name column. (function ...
4
votes
2answers
9k views

Sharepoint 2013 JSLINK template with view grouping rendering

I'm looking for a tutorial or documentation on how to create a JSLINK rendering template that will perform view grouping rendering. I need to use this in connection with the list view webpart, where I ...
2
votes
4answers
5k views

Set the JSLink property for all list forms in FeatureActivated

Is it possible to update the SPForm.JSLink property for the forms (Display, New, Edit) of an existing list in the when a feature is activated? I have tried the code below, but it seems that the ...
2
votes
4answers
12k views

Custom JSLINK rendering template - how do you get ajax paging working?

So I followed this post to implement paging in my custom JSLINK rendering template, and got that working great. The only downside to it is that the paging actions are full page post-backs whereas on ...
4
votes
3answers
2k views

JSLink override fields - can I gain control over TD?

I have an external list, I'm modify fields using: SPClientTemplates.TemplateManager.RegisterTemplateOverrides(context); Basically this modifies the text inside the TD (see code below) <td class="...
0
votes
1answer
1k views

External List - changing a column to dropdown in Sharepoint 2013

I'm on Sharepoint foundation 2013. I have a external list (based on a WCF) For the new and edit form, I'd like to have some columns to be a dropdown (list to be populated from another WCF) Is ...
2
votes
1answer
671 views

External List - change a column to dropdown (Sharepoint 2013)

I'm on Sharepoint foundation 2013. I have a external list (based on a WCF) For the new and edit form, I'd like to have some columns to be a dropdown (list of selections to be populated from another ...
11
votes
8answers
21k views

SP.ClientContext is always “undefined” in JSLink functions

I'm trying to execute CSOM functions as part of a JSLink extension to override rendering of a Lookup Field. Problem is every time I try to access SP.ClientContext it returns as undefined I have ...
0
votes
1answer
935 views

How does one render a security trimmed link in a display template? [solved]

In the old ListView/DataForm XSL based webpart you could throw down some XSLT that would render out a link if the viewing user had sufficient privileges like so: <xsl:choose> <xsl:when ...
4
votes
4answers
15k views

Loading jQuery and jQuery UI within JSLink script

How would I go about using jQuery and jQuery UI (mainly the sortable component) within a JSLink script. So far I've tried several methods of dynamically loading javascript within the JSLink script ...
25
votes
8answers
33k views

Client-Side Rendering/JS Link documentation?

Has there been any sort of documentation or anything like that released for SharePoint 2013 Client-Side Rendering/JS Link? Anthing unofficial? Any dates for when documentation might be released?
1
vote
2answers
388 views

Sharepoint 2013 doesn't render link to my file specified via JSLink on a LVWP

I've done the following: List item Created an OOTB SharePoint 2013 site Uploaded some javascript to _catalogs/masterpage (as a JavaScript Display Template) Published the javascript file. Created a ...
2
votes
2answers
3k views

Why does JSLink code associated with a site column fail to render on first load of document library view, but renders successfully on page refresh?

Bit stumped on this one, wonder if anyone can help? I've created some JavaScript which is stored in the Style Library and referenced by the JSLink property of a site column. When I navigate to a ...
20
votes
8answers
23k views

Customing the newform.aspx of a list using jslink in SharePoint 2013

How do I customise the newform.aspx of a list in SharePoint 2013 using JSLink? A lot of examples seem to be for customising list views. I can't find anything that explains how to customise the new ...
3
votes
0answers
894 views

Bug: JSLink on field/column breaks callout menu in Chrome, Firefox [closed]

I am trying to use JSLink+JavaScript to customize the rendering of a field. My very simple JavaScript code looks like this: ;(function () { 'use strict'; console.log('EmployeeFieldCSR loaded')...