Questions tagged [jslink]
JSLink is the new feature introduced in SharePoint 2013, loading off the burden of XSLT webparts from the developer's mind.
421
questions
25
votes
8
answers
34k
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?
20
votes
8
answers
24k
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 ...
17
votes
6
answers
36k
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 ...
11
votes
8
answers
22k
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 ...
10
votes
1
answer
4k
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
http://technet.microsoft.com/en-us/library/...
10
votes
1
answer
479
views
Not able to set jslink property for a field without FullControl permisson on web (sponline)
For my SharePoint Hosted App, I set the jslink property of the field for customized rendering (JSOM set_jsLink). This used to work without having FullControl permission on web earlier. However, now ...
9
votes
2
answers
4k
views
What are the Type.registerNamespace advantages over standard JavaScript methods?
Now I dive deeper into the world of .Net developers I notice more and more Microsoft ways of doing things unfamilair to me as a (once LiveScript) JavaScript developer.
I see PnP and other blogs using:...
8
votes
4
answers
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
1
answer
12k
views
JSLink - Is CSR PostRender supposed to fire once per field?
I have been working on a CSR script for the New / Edit / Display forms of a list.
I am attempting to use OnPostRender to perform an action after all fields on the form have been rendered (hide a ...
8
votes
0
answers
898
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 ...
7
votes
7
answers
6k
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 ...
7
votes
2
answers
2k
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 ...
7
votes
1
answer
697
views
When JavaScript runs
Working on an overview of all possibilities of adding JavaScript.
Can someone confirm Custom Actions run after JSLinks
By execution order:
Page Scripts
using <script> tags or scriptlink includes....
6
votes
4
answers
2k
views
Can force the "Title(linked to item with edit menu)" column inside my list view to reference to another URL
I am working on a custom list, and inside the list view i am showing the Title(linked to item with edit menu) column. currently when users click on this column they will be redirected to the item ...
6
votes
1
answer
2k
views
what are the differences between JSLINK and Client Side rendering in SharePoint Server 2013
I have read many articles about client side rendering & JSLINKs but i am unable to differentiate between these two topics. now I have used JSLINK to implement 2 things inside my SharePoint server:-...
6
votes
3
answers
4k
views
JSLink - Client side rendering -How to render custom display name with ICON in the list view?
I have been playing with JSlink and CSR. I was able to modify headers in my table with this code:
(function () {
function preTaskFormRenderer(renderCtx) {
modifyHeaderData(renderCtx);
}
...
6
votes
2
answers
1k
views
JSLINK to remove rows from list view webpart
I'm trying to remove rows from a list view webpart using JSLINK, I used the code from this link
Remove rows from list view webpart, I'm able to remove the rows as expected but this is affecting the ...
6
votes
1
answer
432
views
(ClientSide) set/update JSlink to CSR files for (all) WebParts, Views, Fields
Working on iCSR.github.io to make CSR development a bit easier.
I now want to make it as easy as possible to set the JSlink connections on WebParts, Views or Fields.
I have code snippets to do it ...
5
votes
2
answers
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
2
answers
13k
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 ...
5
votes
2
answers
5k
views
CSR is also applied to a Group By header in a ListView
The only decent blogs mentioning CSR and Grouping are:
http://www.codeproject.com/Articles/620110/SharePoint-Client-Side-Rendering-List-Views (must read)
http://jsuhail.blogspot.nl/2014/09/client-...
5
votes
1
answer
896
views
JS Link - How to change a column based on another column's value
Hopefully this is quite simple! Here's my setup:
I have a custom Status Indicator column (PSI), and a "Production Status" column. I want the PSI column to show a different icon depending on the ...
5
votes
1
answer
1k
views
Unable to write a jslink which defines a default values for my Dropdown columns inside the Quick Edit grid
I am working on a list view, where i have a choice column named TrackingStatus. Now for this choice column i defined the default value to be In Progress from the site columns settings.
But i have ...
5
votes
2
answers
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 ...
5
votes
2
answers
2k
views
sp.js and sp.init.js not loaded on Edit form in time for client side rendering
We have two different lists that we are setting up some jslink client-side rendering files for their edit forms. Both csr files use the SP.Guid.newGuid() function to id some DOM elements in the markup....
5
votes
3
answers
3k
views
Where to store JSLink files?
I have a JSLink file which renders some additional information (e.g. a graph) for a out-of-the-box task list. I want to give anyone in my company the possibility to make use of this JSLink file. Where ...
5
votes
2
answers
3k
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 ...
5
votes
2
answers
2k
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 ...
5
votes
2
answers
5k
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.
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(...
5
votes
1
answer
4k
views
modifying a site column using powershell without affecting its child list columns
I have a site column of type "Text", and users have assign this column a default value at the list level. so now my site column contains null default value, while its child list columns are having a ...
5
votes
2
answers
10k
views
JSLink Client-Side Rendering Not Functioning on Custom List
I tested out the use of JSlink on the homepage with a demo list & it worked fine.
I then used the same JSLink on the Demo List itself but images did not render.
Any ideas on what I'm missing?
~...
4
votes
4
answers
16k
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 ...
4
votes
5
answers
14k
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 ...
4
votes
2
answers
27k
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 ...
4
votes
2
answers
3k
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:
...
4
votes
2
answers
3k
views
Can i add a JS Link to a list view in modern interface
I have the following JS link , which i have added to classic interface inside our sharepoint on-premises 2013:-
(function () {
function registerRenderer() {
var ctxForm = {};
...
4
votes
2
answers
874
views
How to change WebPart appearance Title (WP Properties) using JSLink?
Is it possible to change the Title of the List View WebPart (Title property under Appearance) using JSLink i.e using overrideCtx properties? At present, I am modifying the Title using $('span:contains(...
4
votes
2
answers
3k
views
Targeting specific list with Client-side rendering
I've read several walkthroughs on client-side rendering (CSR) and JSlink, and the methods to target only one list on a page instead of all lists.
I understand that I can target using two things: ...
4
votes
2
answers
556
views
How does one alter the appearance of a managed metadata value in a list using JSLink?
Just getting started with JSLink, and ran into a situation that I don't understand. I have a list, with a managed metadata column; ProjectStatus. Initially, I treated this just like any other column ...
4
votes
3
answers
17k
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 ...
4
votes
1
answer
11k
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 ...
4
votes
2
answers
10k
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 ...
4
votes
4
answers
813
views
How to add JSLink to a field through pnp?
I am trying to add a JSLink to my field through pnp so that it displays diffrently in the edit/new mode in the list that it is connected to, the problem i am having is that pnp throws an unknown error ...
4
votes
1
answer
503
views
CSR to render Task Status destroys Task checkboxes
I'm using some JavaScript to provide a more visual approach to a task lists column Percentage Complete.
The script works fine, but I noticed that the task column Completed is not being rendered as a ...
4
votes
1
answer
4k
views
Do not apply CSR Override in QuickEdit Mode
I have been working from a few different examples and nearly have a jslink file working with CSR overrides such that the 'title' value is used in the 'name' field and the title column is hidden.
The ...
4
votes
2
answers
831
views
Site Columns JSLink doesn't work in custom XSLTListViewWebPart
I have a site column (Status) that I've added JSLink to, that runs my custom JavaScript. This works fine on lists. The JavaScript changes the text to a colored image.
I've then created a Visual Web ...
4
votes
3
answers
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="...
4
votes
1
answer
859
views
Run JS link file on just 1 web part
I have a page with 2 web parts. the 2 web parts are the same list just imported in different views. i have added a JS link file to 1 of the web parts using the edit web part properties miscellaneous ...
4
votes
1
answer
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 "...
4
votes
1
answer
566
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 ...