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
0answers
6 views

JSLink: Publishing image field shows in page edit mode but not when page is saved

Similar to this: Can't get Custom Column of type Publishing Image to display in JSLink Publishing image field (Picture1) is in the list view Image shows up correctly in edit mode but not when ...
1
vote
3answers
25 views

JSLink - apply different code depending on the current view

I need to rename the list headers and used the code as provided here: Can I change the display name of column in a listview using JSlink It works fine, but only for the current view. When I change ...
0
votes
3answers
30 views

Conditional Formatting to apply color to indicate progression towards a numeric target

I'm wondering if anyone can help me with a calculate column/JS Link formula. I have a monthly performance indicator which is a count of the number of inspections I perform. There is a target number ...
1
vote
1answer
29 views

Passing a value to a custom JSLink field type

I'm creating a custom field type for Sharepoint using the JSLink method. This field will be used in New List Item / Edit List Item forms. What I want to do is to allow a user to set a custom ...
0
votes
1answer
41 views

JSLink button to open modal window

I have created a JSLink file to open the edit form for a list item in a modal window. It works great on an Office 365 dev site, but when I try to use it within our on-premise SharePoint 2013 ...
1
vote
1answer
38 views

Best way to learn about Client-Side Rendering with JSLink

I figured out that using JSLink can lift SharePoint onto a new level. But unfortunately I am completely lost on really understanding it. I feel like just copy pasting code samples does not help me, ...
1
vote
1answer
71 views

Keep JS Link when adding a list as a webpart

I've discovered a strange behavior. I've generated a list which I customized a lot among other things using a .js file which I added to the JSLink field of the web part. The list is working ...
0
votes
2answers
48 views

Display a SharePoint list row in a table with JS

I have a SharePoint list with one row containing project info. projectnumber ProjectName ProjectAdmin Contracter and so on. I want to display this as a nice table in the teamsite. I reckon this ...
0
votes
1answer
39 views

SharePoint Foundation 2013 JSLink (CSR) not working

I have a simple js example to try. Here the code: (function () { var overrideContext = {}; overrideContext.Templates = {}; overrideContext.Templates.Item = overrideTemplate; ...
0
votes
2answers
78 views

Customize Lookup form field (new, edit) with JSLink

How can I get the options for some LookUp field, in JSLink? Code: SPClientTemplates.TemplateManager.RegisterTemplateOverrides({ Templates: { Fields: { Initiative: { ...
0
votes
1answer
105 views

Use CSR/JSLink to hide Fields in New/Edit Form

JSLink don't work for me in this case, can some body say is this Code below ok. (function () { (window.jQuery || document.write('<script src="https://teamsite/_catalogs/masterpage/jquery-1....
0
votes
0answers
40 views

JSLink custom field type not working in a form created by SharePoint Designer

I have created a custom field type for a SharePoint 2013 list using the JSLink method. It is basically a rich text editor that uses Ckedit.js. It works fine with SharePoint's default new/edit forms ...
1
vote
2answers
66 views

Can't get Javascript CSR display template to work in listview

I'm totally at wits end here. I am trying to use CSR to display custom html depending on a "case status" column. I've added the JS file to the masterpage folder and used the JS Link to connect it. No ...
0
votes
0answers
29 views

RegisterModuleInit for jslink ONLY works when the file is in Style Library

Why does RegisterModuleInit only take when the file is stored in the Style Library? I'm using MDS and my JSLink file only works the first time unless it is stored there. I've tried putting it in: /...
0
votes
2answers
63 views

JSLink: How can you access a list item's properties which are not added to the view?

In order to render certain controls in a view via JSLink, I need to check several conditions based on some fields we would like to keep hidden (not just uneditable in a grid view). How can I do that ...
0
votes
0answers
11 views

Multiple WebParts in auto-sized Modal

I want to add two WebParts (listViews) to a popup modal and i want it automatically sized to the size of the two WebParts. I already tried adding iframes with the desired WebPart URLs to the modal, ...
0
votes
2answers
71 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 = {}; ...
2
votes
2answers
61 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 jslink/...
1
vote
0answers
49 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
46 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
37 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
24 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
59 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 capability:...
0
votes
1answer
35 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
36 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
83 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
79 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
92 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
91 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" Default="TRUE"...
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
33 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
201 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
199 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:-...
1
vote
2answers
220 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
117 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
33 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
80 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
32 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
132 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
39 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/ http://www.codeproject.com/articles/1039357/...
1
vote
1answer
64 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
40 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
198 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
82 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
600 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
89 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
91 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
180 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
83 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
114 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 ...