Tagged Questions

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
1answer
7 views

Email address of Logged-in User using JS Link

I am using Client Side Rendering with JSLink in SharePoint 2013. How to get the email address of Logged in User using JS Link? I was trying to use Ctx.CurrentUser.Email which returns undefined.
1
vote
0answers
7 views

SharePoint 365: Change Lookup Column to Render HTML

In a Document Library I have a workflow that make a link to the document in a library for example <a href="https:/xxxx/label/GFN1671-01.pdf" target="_blank"> GFN1671-01 </a> In a List ...
1
vote
2answers
47 views

How do you use JS Link with Pages?

I'm trying to make a JS Link script that will work with my site's Pages list. Basically I want to display a simple list of page titles. I'm using the Pages Web Part (Web Part > Apps > Pages). var ...
2
votes
1answer
35 views

Setting JSLink SharePoint online

Has anybody successfully set the JSLink for SP Online? I usually set it through Powershell on the view itself but that Command isn't available Online ...
1
vote
2answers
38 views

Can I filter a Web Part list using parameters from the URL?

In my rich content area I've inserted a Pages Web Part (to show a list of pages in the subsite). I'm using JS Link to customize the presentation of the list. Can I pass a parameter to the page and ...
1
vote
1answer
22 views

JSLink on Public Facing Site

I'm just learning about this JSLink technology and have a simple question. Does it work on public facing sites because it's not for me. Seems nothing works on public site. What I've done: copied a ...
1
vote
2answers
64 views

Can't get JSLink to work on external list

We have an external list surfacing data from a homegrown data source and I need to modify some of the values using JSLink (formatting dates, color-coding based on values, etc.) I have a web part ...
0
votes
0answers
47 views

How to apply JSLink to the custom new form of list?

I have created custom new form for list using SharePoint designer, to customize the behavior of OOTB SharePoint. The functionality which I wanted to achieve is complete but I am not seeing the option ...
0
votes
2answers
42 views

How to add content above list view using JS?

I am using JSLink code I found at Office Dev Center to modify my fields showing percent values to display progress bars. What I would like to do further is add some text above the list itself, ...
0
votes
0answers
31 views

Hide 'View Entries' if the field is blank - Multiple lines of Text Append Changes

I have a 'Multiple lines of text' field on a custom list that has 'Append Changes' enabled. My client would like to hide the 'View Entries' link (in the List View) if there is nothing in the field. It ...
0
votes
1answer
68 views

Make List Item Attachment link clickable with JSLink

I am generating a link to a List Item's attachments using the following code. It works perfect, but it is slowing down the loading / paging of my List view significant. Does anybody know of a more ...
0
votes
0answers
46 views

JSLink OnPostRender to modify list totals only works before filter

I'm working with Office 365 and have just started using the JSLink facility to manipulate the presentation of a list via the link on the list view web part and on the whole it's doing a great job. ...
0
votes
1answer
80 views

Hide Title Field

Im creating a sharepoint list with Javascript, now i want to hide the title field in the same process. How can i acchieve this?, i was trying to add a jslink , and in that document, hide the title ...
1
vote
1answer
17 views

Enable Data View Caching JSlink

I have Enable Data View Caching unchecked and when i firts go in to my list i select the items i want to set color on press the button (pic1) and then it looks like this (pic2) when i after that ...
0
votes
0answers
26 views

Jslink on field in hostweb to load script from appweb?

is it somehow possible to load jslink script from appweb on the field that is in hostweb? Absolute url for jslink does not work ...
0
votes
1answer
80 views

JS link 2 different templates for 2 different views of same list on 1 page

I have 1 list that I want to display in 2 different ways on the same page. When using the jslink property included in the OOTB listview webpart only one display template gets rendered for both ...
1
vote
2answers
218 views

Using Different BaseViewID values for multiple JSLink on a single page

I've been working with JSLink customizations for a couple different Custom Lists we have and they've been working fine when on a page by themselves. Recently I needed to include multiple Custom Views ...
0
votes
1answer
81 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
71 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
1answer
91 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
230 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
3answers
461 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
80 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
334 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
79 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
323 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
30 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
94 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
91 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
2answers
212 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
1answer
125 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
90 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
58 views

Are JSlinks available for Sharepoint online?

Just wondering if JSlinks can be used with the online version of Sharepoint?
0
votes
1answer
96 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
61 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
71 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
55 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
404 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
159 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
169 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
453 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
111 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
67 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
388 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
1k 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
146 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
73 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
1k 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
55 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
463 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 ...