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

JSLink does not load in Calendar view

I have a Calendar list. I added JSLinks to all views, and most of the files are loading as they should and they work ok. However in the Calendar view the *.js file is not loaded (the path to the file ...
2
votes
1answer
16 views

Jslink field run function after field is rendered

i did registered function for custom field rendering with RegisterTemplateOverrides and my custom field render works quite nicely. Part of the field is input box for autocomplete, my issue is how to ...
1
vote
0answers
12 views

Catch on drop event in document library

I am trying to write a JSLink file that hooks to the event "ondrop" (or whatever it is called) from a document library. The reason behind this is, we want a jquery dialog to open when someone drags a ...
1
vote
2answers
50 views

JS Link not working after saving page

I have an external list with one field/column that contains an URL and title. e.g. "http://www.example.com/somefile.ext,Example file" But since I want to just show a hyperlink with the title I've ...
2
votes
2answers
83 views

Sharepoint 2013 JS Link return default field rendering

I got a very strange problem. I need to return default rendering for UserField (PeoplePicker) for some SP users with current user, and show read-only field with current user for others. In other ...
1
vote
1answer
32 views

JSLink html image path to a SiteCollection StyleLibrary in a SubSite

Currently I am trying to reference my SiteCollection Style Library image directory in a javascript file linked up to a DocumentLibrary Webpart in a subsite. The current directory I am ...
1
vote
2answers
79 views

How to handle multiple calls to executeQueryAsync synchronously?

I have a custom list to which I am applying JSLink to NewForm.aspx. The list where JSLink is applied is : XXX and in the JSLink I am querying data to YYY from the list YYY there are two fields ...
1
vote
1answer
40 views

Unable to return value of Person or Group field from JSLink

I have a custom list in which I have applied JSLink on Person/Group field in NewForm.aspx, my code works fine to render the field but when I click on submit button, I am returning value. ...
0
votes
2answers
54 views

Unable to get property 'get_current' of undefined or null reference in JSLink

I have a custom list to which I want to apply the JSLink in NewForm. My code is : (function () { // load jQuery var newscript = document.createElement('script'); newscript.type = ...
2
votes
0answers
20 views

SP2013: Tabular view incompatible with JSLink checkboxes?

I'm using a JSLink file to replace a "Single line of text" column with a custom checkbox. For some reason, when "Allow individual item checkboxes" is enabled my checkbox won't work - I can't even ...
0
votes
1answer
40 views

Can't get Custom Column of type Publishing Image to display in JSLink

I have a column of type "Publishing Image" named "Picture Upload" defined at the site collection level, and then included in my Custom List. When I try and access the column from my JSLink function, ...
1
vote
1answer
54 views

Using JSLink to put Description beneath Title in DocLib

I just started using JSLink, and i think it's great! But now i'm facing a problem with the following... I have a DocLib where i want to display the Description field beneath the Title field. This ...
4
votes
1answer
100 views

Customize a view of recurring calendar events using client side rendering (JSLink)

I'm trying to apply CSR to a calendar-view. This seems not to be working. In fact the file specified in JSLink is not loaded at all. As a basis I'm using the standard "Current Events"-view which ...
2
votes
0answers
52 views

Custom DisplayForm using JSLink

Is there any way to customise the display form of a list using the Client Site Templates e.g. // Register the template overrides. ...
1
vote
1answer
58 views

Return CurrentItem from context.Templates.Item JSLink

Any ideas on how to return from the Custom Item method when using JSLink (as if it was never called)? I want to do a check in this method and hide the row if the condition fails. I know I can do a ...
0
votes
1answer
47 views

Are JSlinks available for Sharepoint online?

Just wondering if JSlinks can be used with the online version of Sharepoint?
0
votes
1answer
43 views

JSLink: Userfields (Author, Editor, …) only provide userId not username

i recently tried to modify a view with JSLink, modification works very good, but userfields are not correct provided if JSLink is in use. By default a userfield is rendered blank at first glance. ...
0
votes
0answers
51 views

Using JSLink to add hyperlink to the Title - control if the link opens in browser or program

Due to business requirements I have a document library with BI reports (.rdl and .xlsx files) where I need to show the title while hiding the name. In order for our users to open the reports, I have ...
0
votes
0answers
55 views

SharePoint 2013 - Extra HTML tags in JSLink Styling

I'm customising my views using context jslink, it's going well but I noticed that in the code there are extra <p> tags and also a <br> being added neither of which should be there. Does ...
0
votes
0answers
46 views

JSRender modify dispform.aspx button

I want to modify the button, the display text and the url link. How can I do that with JS-Link?
0
votes
1answer
176 views

Getting Custom List columns with JSLink Context

I have a custom list in SharePoint 2013 and I'm using a javascript file to style it utilising the JSLink capabilities to reduce server load etc. The problem I'm having is that my custom list as a few ...
0
votes
1answer
118 views

JSLink filter current list

I have added a list view web part in a page and have attached a JSLink to customize the look and feel of the list. The list has a "Category" column. I would like to filter the list based on the ...
0
votes
1answer
123 views

JSLink: Return field value as plain text

This might be really very simple, I have a list view with multiple Rich Text fields, I want to remove HTML formatting from those field in a specific view and return them as Plain text. I would like ...
1
vote
1answer
207 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 ...
0
votes
1answer
88 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
57 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 ...
2
votes
1answer
243 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 ...
1
vote
2answers
710 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
105 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; ...
0
votes
0answers
57 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 ...
1
vote
3answers
557 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
47 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.
3
votes
1answer
300 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 ...
1
vote
1answer
79 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 ...
0
votes
0answers
179 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 ...
2
votes
1answer
196 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 ...
2
votes
2answers
301 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: ...
0
votes
2answers
1k 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
79 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 = ...
3
votes
1answer
341 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
531 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
293 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
171 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
766 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
602 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' ...
2
votes
1answer
972 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
1answer
115 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
458 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 ...
2
votes
0answers
137 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
416 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 = {}; ...