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

JSLink, implementation of sp.runtime.js

I want to override my field using SP.Guid.newGuid(), but SharePoint loading my custom js file earlier than sp.runtime.js file. There are best practice for implementation of sp.runtime.js in this ...
1
vote
1answer
77 views

Rendering PeoplePicker in JSLink Item Template

I have a custom SHarePoint List that holds a User Lookup. Now I want to customize the layout in the display or edit form. In both I must render the PeoplePicker Control. This is my code ...
3
votes
2answers
62 views

Client Side Rendering with Async dependencies

In my display template I want to render a field in different ways based on the user's group membership. The information about the group membership comes from an async ajax call (jsom or rest) What I ...
0
votes
2answers
42 views

Referencing JSLink files from Content Type Hub's Style Library

JSLink allows the following tokens to construct relative URL references. ~site—refers to the URL of the current Web site. ~sitecollection—refers to the URL of the parent site collection of the ...
0
votes
1answer
44 views

JSLink Client-side rendering

I need to render some fields client-side, I followed this guide: Client-side rendering but this code is not working: (function () { // Create object that have the context information about the ...
0
votes
1answer
39 views

Button/Workflow to open New Email Form in List (EDIT: CSR & JS Link)

Right now in SharePoint (2013) if a column contains an email address by clicking on it an Outlook window pops up with the To: autofilled with that email address. Maybe the other way round is possible? ...
0
votes
1answer
34 views

Not getting simple JS Link tutorials to work

I haven't had experience with JS Link and thought it would be a good idea to start learning it and try it out. I found what I thought were pretty straightforward tutorials of how to use it. First I ...
2
votes
2answers
57 views

JSLink FormTemplate Not Saving Data in Modified Field

I am using JSLink to update the input text field on the NewForm. I want the same input textbox html and am only adding some styling to it (in this case background-color==lime). So I start by ...
0
votes
1answer
40 views

JSLink file location

I have JS file that can open pdf files into new windows, now I want to know how can I upload that to the document view? this is the AllItems.aspx file that display all the documents and this is my ...
0
votes
0answers
43 views

JSLink - Hiding 'View Entries' link returning from a multi line text field (Append changes)

I'm trying to hide the 'View Entries' link you see when in a list view for a field of type Multi-line (Append Changes). Our users do not want to see the link if the field is empty. My first step is ...
1
vote
1answer
55 views

JSLink use with content type hub and my sites

Content type hub is used in this scenario, to syndicate the content types and columns to several web applications. I'm setting the JSLink property in a custom field definition, to load the .js file. ...
0
votes
1answer
34 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
24 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
66 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 ...
3
votes
1answer
83 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
66 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 ...
2
votes
1answer
40 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
100 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
60 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 ...
1
vote
2answers
66 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
60 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
149 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
77 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
105 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
24 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
32 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
162 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
514 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
119 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
136 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
157 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
466 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
1k 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
120 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
814 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
104 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
885 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
47 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
133 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
128 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
273 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
157 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
130 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
60 views

Are JSlinks available for Sharepoint online?

Just wondering if JSlinks can be used with the online version of Sharepoint?
0
votes
1answer
163 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
67 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
82 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
60 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
695 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
186 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 ...