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

SharePoint JSLink override not working

I need to overwrite a multiline sharepoint field by a tooltip but it's not wotking. (function () { var SubjectFiledContext = {}; SubjectFiledContext.Templates = {}; ...
1
vote
2answers
38 views

Color code due date field

I have modified the following script to display my ReminderDate field in red if the date is past and also the feedback field is false. Before implementing this and because I am a novice in ...
0
votes
1answer
26 views

Sharepoint 2013 Foundation Native forms customize [closed]

I am new with Sharepoint but old with ASP.NET MVC. I Would like to know a better way to do: Native Forms (New and Edit) Customization, so i need to add on form change events, required field based in ...
1
vote
0answers
25 views

JSLink field value form Display Form automatically includes a <div dir=“”> element

I am using JSLink to override a TextArea column on SharePoint 2013, when I am trying to get the field value using ctx.CurrentItem[ctx.CurrentFieldSchema.Name] on display form, it warps the value with ...
0
votes
1answer
30 views

Filtered Views, URL's and the 5000 view limit

I've got various issues around the filtered views, one of the biggest problems is that I have a library that was indexed after it reached the threshold, meaning that any filtered views I create will ...
0
votes
1answer
31 views

Why javascripts referenced in JSLink are cached by browser (max-age=31536000)?

Context Recently, I noticed that browsers cache the javascript files that have been referenced from the JSLink property of a OOB list form. Analyzing the network traffic with chrome dev tools, I can ...
0
votes
1answer
17 views

JSLink Error 404

After deploying a JSLink file to add a button to a list view, I'm getting the following error when expecting the page in Chrome developer tools. using the following to reference the item ...
0
votes
3answers
55 views

How i can set the “Due Date” field (on the fly) to be equal to Today date, when the “Status” dropdown list is changed to “In progress”

I am working on an issue tracking list inside SharePoint enterprise server 2013, where it contains these fields:- “Due Date” Item status Now our customer, asked us to implement this ...
0
votes
0answers
20 views

jsLink Nested Group Count returns Undefined

I have a jsLink working to display the groups and counts for a grouped list view, from here: js link group count list SharePoint 2013 But, my list has nested groups and the count for the children ...
0
votes
1answer
31 views

Filter out items based on metadata using js link

I have a document list for a project site. I have views created for each team. I also have four categories of documents for each team. I'd like to be able to have multiple instances of the list on ...
0
votes
0answers
46 views

Custom Thumbnail view with javascript as asset library

At the moment I am creating a teamsite for my team at sharepoint 2013. My problem: I want to create a special view for my document site. I followed these instructions from an external sharepoint ...
3
votes
1answer
65 views

What is the best way to add JSLink inside form tag

I am trying to add JSLink insided for tag in my SharePoint hosted app <Form Type="NewForm" Name="{878B105CA-A7O8-7C28-HD7F-5B0DCBA7DSA}" SetupPath="pages\form.aspx" ...
0
votes
1answer
72 views

JS Link and CSR: Error After Filtering and Viewing/Editing

I have a *.js to color code my rows according to the value of the column Status. It is working very fine UNLESS one filters any column and views/edits an item. After exiting the item view, the ...
6
votes
0answers
71 views

JSLink in form tag is not working from schema.xml in my SharePoint hosted app

Here is my code from schema.xml <Forms> <Form Type="NewForm" Name="{65B105CA-E7D8-4B28-8C9F-5B0DCBA7E0CA}" SetupPath="pages\form.aspx" WebPartZoneID="Main" Url="NewForm.aspx" ...
0
votes
0answers
16 views

Disabling JSLink actions in datasheet view [duplicate]

Is there a reliable way to disable JSLink firing when a user switches over to datasheet view? At the moment I'm thinking of location.hash references but that seems like an unreliable way of doing it. ...
0
votes
1answer
28 views

Include jslink in newform when a list is saved as template

I have created a list and in the newform I have added a jslink in it. Then I have saved this list as a List template to create other lists based on it. When I create a new list based on this list ...
7
votes
0answers
162 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 ...
5
votes
1answer
171 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 ...
1
vote
2answers
151 views

Color code due date field if 6 months before current date

I have this specific requirement to color code the due date field if it's value is less than 180 days (6 months) compared to today's date. Is this possible with Javascript/JSLink ? Thanks
0
votes
2answers
79 views

Highlight Sharepoint List based on condition

I have the JSLink function below which I copied about 99.9%. But when I run it for my List, I get the following error. It doesn't seem to know the what the listItem is. Could someone please explain ...
1
vote
0answers
29 views

Want to use Jslink for more generic way

I have written a JSlink for custom display of my announcement web part. JSlink is working fine and i can see the results. Now my customer wants to place 2 different announcement web parts in one page ...
4
votes
0answers
70 views

are JSLinks on WebPart , View , Fields mutually exclusive?

Elio Struyf already blogged in 2013 about a problem with missing Microsoft CSR Templates when you add a JSLink on the webpart. The checkboxes (from hierarchytaskslist.js) do not display. Seems that ...
0
votes
1answer
30 views

Wrong link, now screen is blank

I has set false jslink, now screen is blank and I can not get webpart properties
6
votes
1answer
111 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 ...
1
vote
0answers
32 views

is SOD async? So the DOM is (sometimes) already created before CSR runs

Now that's a subject to scare any developer I have spent a couple of days on: http://www.spcaf.com/blog/loading-a-javascript-library-from-a-cdn/ ...
1
vote
1answer
60 views

sharepoint modal dialog not working

I am trying to display a list items's content (body column) when you click on the title in a modal dialog box. If I fill the modal function with nonsense text, it works fine (for example, title: ...
1
vote
0answers
29 views

Combine JSLink of UserContextFilterWebPart and a XsltListViewWebPart

I have a WebPartPage which includes a XsltListViewWebPart and a UserContextFilterWebPart. In order to filter the results by the user office and 'connect' the two webparts, I added the parameter ...
2
votes
1answer
121 views

Using JSLink with Document Set Contents web part

I'm following this tutorial on how to use JS Link to do some custom formatting to my list views. And it is working well. However when I go into my document sets the contents of the document set are ...
3
votes
0answers
73 views

CSR ListView Pagination working in IE but not in Chrome

I've created the following to override a ListView I'm using to display an Announcements List to users. This works in IE9, enabling 'Asynchronous Update' has no effect on the results. In other versions ...
1
vote
2answers
271 views

JSLink: Is it possible keep the default list view header with column headers for filtering?

I am rendering a view with JSLink. Rendering is fine but is it possible keep the default list view header with column headers for filtering? I have tried this code in my dev environment. Issues: ...
1
vote
1answer
68 views

CSR View Fields dynamic with Field names from View?

I try one CSR file for all views but the views have not all the same columns Is it possible to make the Fields in TemplateOverrides dynamic with the Field names from the current View? ...
1
vote
1answer
81 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
132 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
59 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
76 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
42 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
22 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
158 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
189 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; ...
7
votes
2answers
221 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
26 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
25 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
116 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 ...
5
votes
2answers
221 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
41 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
13 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 ...
2
votes
2answers
151 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
54 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
152 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
128 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, ...