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

learn more… | top users | synonyms

0
votes
0answers
23 views

JSLink: Getting item URL or identifier

I'm using a modified version of the Accordion Menu code sample (here). Inside the accordianTemplate function, I need to get the URL or some kind of identifier of the currentItem object so that I can ...
1
vote
1answer
32 views
+50

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 ...
1
vote
2answers
36 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: ...
-1
votes
0answers
18 views

JS Link reference not working at all

I am trying to link JS file into one of my custom list's SharePoint view using JS Link configuration to change the behavior for List UI. But for some instance its not working at all. This is not the ...
0
votes
2answers
36 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 ...
0
votes
0answers
25 views

JSLink Issues with Powershell but not Object Model (with Code Samples!)

I am having trouble attaching a JSLink to a list view (.js file located in the Script Library) Powershell: $list = $web.Lists["Gratitude"] $view = $list.Views["Gratitude"]; $view.JSLink = ...
2
votes
0answers
123 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
113 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 ...
0
votes
2answers
79 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 ...
0
votes
1answer
35 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 ...
2
votes
2answers
147 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 ...
0
votes
1answer
293 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' ...
1
vote
1answer
260 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 ...
3
votes
0answers
93 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 ...
4
votes
3answers
182 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 ...
1
vote
0answers
103 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 ...
1
vote
2answers
260 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 = {}; ...
1
vote
1answer
209 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" ...
0
votes
2answers
97 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 }; ...
2
votes
2answers
356 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 ...
3
votes
1answer
232 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
0answers
92 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
101 views

Will JSlink works 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
2answers
294 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
99 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 ...
2
votes
1answer
264 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 ...
2
votes
2answers
512 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 ...
0
votes
2answers
160 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 ...
1
vote
1answer
2k 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 ...
2
votes
2answers
442 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 ...
0
votes
1answer
268 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 ...
1
vote
1answer
142 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 ...
2
votes
4answers
1k 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
316 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 ...
2
votes
2answers
2k 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 ...
1
vote
6answers
5k 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
1answer
153 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 ...
0
votes
2answers
967 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 ...
9
votes
8answers
7k 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
296 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 ...