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

1
vote
0answers
29 views

SPField_FormDisplay_Default is not defined

I have set JSLink to a field (LinkFilename) that required to return default rendering in some context. I implementation according PnP/ReadOnlySPControls.js, and use SPField_FormDisplay_Default to ...
2
votes
1answer
47 views

Display all documents list items, including subfolders in webpart using JSLink, as a tree view

I'm trying to find a way to do this: In a webpart on a page, create a tree view of all items in the "Documents" library, with folders, subfolders, and items (links to items). So my idea was to add a ...
2
votes
2answers
29 views

Generate default “Name Column” fields values in JSlink (CSR)

I am having issues with "Name column" and its fields in libraries. I would like to iterate throuch each item and return default render value in this column in certain cases. I have tried lot of things ...
0
votes
1answer
26 views

NewDocSet and JSLink

I'm creating a custom field type and use JSLink for rendering this field in forms. Unfortunately, when I try to create a new Document Set, my .js file is not attached to the page and field rendering ...
2
votes
3answers
33 views

Including a script in a jslink file

I'm building a simple app on a SP2013 online intranet that uses the Google Books API to pull in GB content (title, author, image etc). The goal is to modify a SP list view to populate the book isbn ...
2
votes
0answers
15 views

Store data in the list - save it to list itsef for CSR to read

I would like to ask if somebody has an idea how I can store formatting data for particular list/webpart on a page. My concept: I would like to create JSlink that would be attached in masterpage file. ...
1
vote
1answer
41 views

JSLink and REST API issue with async

I am trying to use REST API inside JS Link. SPClientTemplates.TemplateManager.RegisterTemplateOverrides(OverrideFieldContext); function OverrideFieldContext(ctx) { var groupingName = ...
1
vote
2answers
44 views

Sharepoint JSlink ctx.CurrentItem[“Author”][0].title;

I am stuck getting the name of the Author/editor. I am overwriting the templates.item: var overrideCtx = {}; overrideCtx.Templates = {}; overrideCtx.Templates.Item = newView.customItem; ...
5
votes
1answer
50 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 ...
0
votes
0answers
15 views

Client Side Rendering - not working on Custom List Forms

I have created a custom list form through SharePoint Designer. When I add code for Client Side rendering on the page, it does not work. The same code works on the out of the box default form. Can we ...
0
votes
2answers
18 views

Client Side Rendering deployable via Sharepoint solution package

I would like to create a sharepoint 2013 solution (.wsp) that could be easily deployed and would contain a basic CSR(JSlink) that would modify all views in the site collection. I have been able to ...
0
votes
0answers
42 views

Set value of lookup field using JSLink

I am trying to use jslink to update the value of a lookup field in a quick edit view. I haven't been able to figure out how to do it. I have done a fairly exhaustive search online, but the closest I ...
3
votes
2answers
62 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); } ...
0
votes
1answer
22 views

How to render filtered data in SharePoint list using JavaScript or JSLink

I have a custom list and I have to render filtered data dynamically. The scenario is, I have some SPGroups i.e. (Requester and Approver). If the current user is in Requester group then I have to show ...
0
votes
0answers
11 views

JSLink / CSR on Calendar Webpart [duplicate]

I can successfully attach a JSLink file to a Calendar's view "All Events" or "Current Events", but does anybody know how to attach a JSLink file to the "Calendar" view in SharePoint 2013? This ...
1
vote
1answer
43 views

Display the Actual “Related Item” in a Task List using JSLINK?

How would I go about displaying a link to the actual related item within a task list? Currently, when I display the related item field in the view, all it shows is '1 Related Item'. Is it possible ...
1
vote
0answers
35 views

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

we need to filter list view items based on some conditions for which we need current context(sp.ClientContext). but we are getting undefined or null reference. we have also followed the solution ...
4
votes
2answers
78 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 ...
0
votes
1answer
52 views

How to expand group with JSLink custom list views

If I custom render my groups on list views with JSLink, I (of course) overwrite the SharePoint standard code, including the javascript for expanding. function myGrouping(ctx, group, groupId, ...
0
votes
2answers
52 views

JSLink OnPostRender ist not called at ListView

I completely re-render my listviews via JSLink. To keep the original filter popup layout (and solve this problem) I use the onPostRender handler to move the table headers around a little bit. This is ...
1
vote
1answer
43 views

Deploy JSLink file with XSLTListView WebPart

Hi I want to deploy jslink file along with XSLTListView webpart inside a page. The webpart is deployed in the page like the following: <WebPartPages:WebPartZone ID="main" Title="my zone" ...
0
votes
1answer
45 views

CSR Documentation

I am looking for CSR Documentation. If I Google something from the Server-Side API, I get the documentation right away. For example, Googling SPWeb, the first result is the documentation: ...
0
votes
1answer
55 views

Using JSLink to recreate the default view

I would like to learn how to completely override a list's view and recreate it using JSLink, if such a thing is possible. There appears to be a huge gap between the types of alterations I can make: ...
1
vote
1answer
66 views

Formating list with JSLink - “like” button

I am trying to reorder casual sharepoint list view which looks like this: To look like this: I am using JSLink and I have no problem with normal text fields like "Title" or "Description" but I ...
2
votes
2answers
149 views

How to extract the user name from ctx.CurrentItem.Author?

I'm customizing the DisplayForm with jslink and like to know how to treat the field Author and extract some informations. For example, the object ctx.CurrentItem.Author returns me this string: ...
1
vote
1answer
76 views

How get item ID in JSLink on DisplayForm

I'm customizing the DisplayForm of a list, and I want put a button on footer to EditForm, but in the ctx has no edit form url and no CurrentItem.ID. How can I do this?
0
votes
1answer
78 views

Include JS Files in JS Link File

Is there a way to include another .JS file into a JSLink file? I have made mini framework to render list views which I want to source out in a seperate file and then add a normal JSLink file for ...
0
votes
2answers
27 views

JSLink distinguish between several Lists

I'm rendering some lists via JS link and I want to use postRender to move some containers via jQuery. Everything works fine as long as I'm displaying just one list. If I add several list webparts ...
0
votes
0answers
84 views

JS Link and CSR: How to use Default sorting/filtering and override header

I'm using JSLink to customize list views. I actually override the complete view,. Header, body and footer (because the default HTML code of Sharepoint is quite a mess and quite impossible to style via ...
0
votes
1answer
65 views

Display “created by” field using jslink without “object Object” error

Created by field is formatted as "name". Field ref used in jslink ctx override is: ...<span>Submitted by: " + ctx.CurrentItem.Author + "</span>... Field is present in view but all I ...
2
votes
0answers
67 views

Sort ListView via Postback in JSLink file

I found out, that you can filter a list view in a JSLink File very easy by a postback: function filterList(ctx, filterField, filterValue){ __doPostBack(controlId, 'NotUTF8;__filter={' + ...
1
vote
2answers
119 views

Create unique number with ListItem [ID] and [Today] age in Calculated Column Formula

Without a Workflow, How is it possible to make it works this Formulas: =TEXT( [Created] ,"YYYYMMDD") &"-" & REPT("0",4-LEN([ID])) & [ID] =Today() - [Created]
0
votes
1answer
57 views

JS Link create a Column / read metadata of a document

I'm new to SharePoint and JS Link. I have to read the metadata of a document in a document library. If the document is locked for the current user, I want to create an extra column and display an ...
2
votes
1answer
147 views

Sum Calculated Column (SP 2013)

There is a very nice solution below from ViewMaster (http://www.viewmaster365.com/#/Create/Sum) that involves some scripting within the formula of a calculated column itself. However, the Sum will be ...
0
votes
0answers
47 views

Jslink “undefined” object

Usually undefined means I forgot to add a field to a view (!), but in this case I'm using a dataview and the field is definitely there. The key line - the undefined field is Image_x0020_upload: var ...
0
votes
1answer
156 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: ...
0
votes
1answer
59 views

how to access Target Audiences field using jslink?

Normally you access a field using jslink in the following manner: ctx.CurrentItem.Title but how can I access Audiences field for a given item? This does not seem to work: ctx.CurrentItem["Target ...
4
votes
0answers
166 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 ...
0
votes
1answer
74 views

Automatically collect WEBPARTID for rendering CSR (js-link) and paste them into a script JS

I am working on a rendering solution CSR (JS-Link) which uses the webpart ID list view to render. Rendering a JS file is located in a library on the site. The site is then registered model and ...
0
votes
0answers
38 views

get parent term ID of leaf term

How can I get the parent of a leaf term stored in managed metadata column in SharePoint list using JavaScript. for example if I have a hierarchy like Country;State;City then i want to get the ...
2
votes
0answers
104 views

JSLink on managed metadata column in Sharepoint forms

I have a requirement in which i have to apply custom rendering to my managed metadata field. I have to convert the term store hierarchy into a group of three drop downs. for example, I have an ...
0
votes
0answers
41 views

Retain list search box when modifying list item with jslink Sharepoint 2013

If I don't replace header and footer elements, the list search box appears but it doesn't work (ie it doesn't run and get results). Is there a way to retain this functionality if I replace JUST the ...
1
vote
1answer
33 views

I can't get the selected list items if the page is published

I can't get the array of the selected items on a published page. I used SP.ListOperation.Selection.getSelectedItems(). It all works if the page is checked out, but it returns nothing if the page is ...
1
vote
1answer
141 views

Pass dynamic parameters to JSLink for filtering

I am using SP Online 365 and having trouble working out how to show Custom List contents. There are 2 questions: 1. How to edit Link Location for item in Promoted Link list 2. How to add code to ...
0
votes
0answers
45 views

JS Link with same exact code only works on some lists

I have tested the same code on multiple lists using JSLink and it only works on some lists. I am using the right path and the code is the same so why doesn't it work?
0
votes
0answers
74 views

Disable/remove the “Best Reply” link inside my discussion board app

I have added a new Discussion Board APP inside my team site collection, but i do not want users to mark specific replies as "Best Reply".. so is this possible to remove or hide the "Best Reply" link ? ...
3
votes
1answer
226 views

Task List - Using a custom JS Link file, but keeping original menu options

I have added a 'Task List' app to my site. Out the box, when you click on the '...' menu option, you see a pop-up with a whole bunch of useful task list related details. However, I have also ...
1
vote
1answer
60 views

Problem JSLink (color priorities) - Nothing changes

I have a problem using JSLink. The goal is to color in red, orange, green the priority field. For information, I followed step-by-step the tutorial given by Microsoft. In Site Features, I've ...
1
vote
1answer
57 views

When I delete an list item with a JSLink view template applied, it removes the View template and displays the raw data, how can I prevent that?

I have a JSLink text field that overrides the View template. It stores a few delimited values that it parses into an anchor tag: If I delete one row, the other rows no longer display the view ...
0
votes
1answer
336 views

CSR Error: Cannot read property 'style' of null

Trying to color rows based off of the value of the "Status" column However I cannot get it working as it keeps giving the following errors: TypeError: Cannot read property 'style' of null ...