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

2
votes
0answers
38 views

JSLink not displaying

This is my second display template, which is mostly a copy of the first one. All of the configurations are the same, but for some reason it's not firing when the page is loaded. here is the ...
0
votes
1answer
30 views

Set values in Newform with CSR

I have a TestField (Single line of text) that I can return a value to while in NewForm.aspx. The problem being, the TextBox disappears and it only displays the returned text itself. (function () { ...
0
votes
1answer
10 views

Quick View tiles with JS

has someone implemented something like this?: https://github.com/CodyHouse/product-quick-view ? I want to make my own "tiles" in SharePoint and add some style and functions to them. I can see, that ...
3
votes
2answers
41 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 ...
1
vote
2answers
74 views

JSLink, can it run when a choice dropdown changes?

I have an EditForm that I am using JSLink to run some javascript that gets the Content Type and then sets a field according to the Content Type. This works fine when the form loads, the trouble is ...
1
vote
2answers
69 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? ...
1
vote
2answers
41 views

Show content of list field in another field using JSLink

I've a list with fields field1 and field2. In one view I would like to append the value of field2 to field1 and hide field2. Is that possible with JSLink? How can I do that?
0
votes
1answer
28 views

Deploy the same JS Link for multiple views across libraries

I need to use the js for all views in all libraries in a site. Is there a way to deploy this in one hit rather than editing each view individually?
0
votes
0answers
9 views

field “JS link” had disappeared in web-part properties [duplicate]

I do not see "JS link" field in web-part properties for simple List. I am on SP online. I tried IE and other browsers. What's the problem?
2
votes
1answer
110 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 ...
0
votes
0answers
35 views

JS Link on External list views (BCS)

How can I apply SharePoint Client Side rendering (JSLink) on an external List?
0
votes
0answers
29 views

Modify field description with jslink in new form

I have a list with a lot of questions. For each question I have added a code to the descriptionfield, where the first 10 characters is used to define a specific "characteristic". Basically each ...
2
votes
1answer
58 views

JSLink and lookup field problem

I am trying to make a cross site lookup field. So for now I made javaScript file and overrided the JSLink parameter. I want to made it clear for sharepoint and followed clientforms.debug.js ...
1
vote
1answer
53 views

JSLink Not Working For Non Admins

As the title says, my code for the JSLink is not working on my list for non admins. I made sure that the script was published as a major version and it is still not working. My code is: (function ...
0
votes
1answer
150 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 ...
0
votes
0answers
31 views

SP2013 - Override custom ListViewWebPart View

I'm using SharePoint 2013. I created a custom view with a custom JSLink and named it CustomJSRenderingView . I want to create a ListViewWebPart in a custom page programmatically and point that webpart ...
0
votes
1answer
30 views

Executing JavaScript when item is being saved

I have my custom EditForm created in my SharePoint-hosted app and I need to save some values to the item property bag when the user clicks "Save" button. Is there any way to modify the default saving ...
1
vote
0answers
16 views

'Srch' is undefined Shareponit View

I have a bug in JavaScript, 'Srch' is undefined in file sp.ui.listsearchbox.js, Line: 1, Column: 5673 this bug there is only on view, and I don't have any ideas how fixed this bug. Maybe ...
1
vote
0answers
412 views

Uncaught TypeError: Cannot read property 'toString' of undefined

I have implemented the jQuery UI autocomplete functionality on a input field using JSLink. It works like a charm when I test it using Internet Explorer 9, 10, 11 and Chrome. Some users are however ...
1
vote
0answers
48 views

JSLink in List View when rendered as web part

I have implemented some custom formatting using the SharePoint 2013 JSLink functionality for a custom list, but noticed the formatting is not applied when the list is added to a wiki page as a web ...
0
votes
0answers
50 views

how to change the view of a calendar list view web part using jsLink

I am trying to change the view of a calendar list view web part using jslink but it seems that it does not affect it at all. Anyone knows how to do that? Here is some simple code that I was trying to ...
2
votes
0answers
115 views

JSLink Publishing HTML field is not in ctx.CurrentItem

I have the following JSLink template for rendering items in a custom list containing a number of columns of type 'Publishing HTML'. The template is used on both the default view (AllItems.aspx) and ...
1
vote
2answers
191 views

how to get the url of a list item in jslink?

I am using the jslink code below to display the title of the list in a List View web part as a hyperlink. But the problem is that I don't know how to point to the url of that item? so how can I get ...
3
votes
2answers
126 views

How to add resources when using JSLink

I am using JSLink to change view of a custom list using this code, (function () { var overrideCtx = {}; overrideCtx.Templates = {}; overrideCtx.BaseViewID = 2; ...
0
votes
1answer
39 views

Sharepoint 2013 JSLink

I'm able to make changes(like background color for specific item) in listview webpart using JSLink. My query - When I change the view from 'Current View' to Other 'Custom View' in ListView Webpart. ...
0
votes
1answer
74 views

JSLink: Render after SP-functions were executed

I want to execute a function getdata() which uses SP.ClientContext. This function gives me some data from different lists on a page. I want to use this data to render my page with jslink. My Problem: ...
0
votes
1answer
53 views

JSLink not working on view 'AllItems.aspx'

I'm trying to add a JSLink to the 'AllItems.aspx' view of a standard task list in SharePoint 2013. For this I'm using the following PowerShell snippet. $SPSite = Get-SPSite ...
0
votes
0answers
13 views

Embedding an Excel Services Webpart in a JSLink template

I have a list with formatting being applied via a JSLink file. Is it possible to embed another webpart within the JSLink file? I have a list of projects, each has a corresponding Excel file with a ...
0
votes
1answer
31 views

Can we use jslink for builtin application pages for specific type of lists?

Can we use JSLink for built-in application pages for specific type of Lists? What possible ways we can add CSS and JS to specific out of box List application pages? May can use JSlink?
0
votes
2answers
177 views

Is it possible to refer to a field hidden in current view from JSLink attached to current view?

I have the following JavaScript code attached to List's JSLink property: (function () { var coloringFieldContext = {}; coloringFieldContext.Templates = {}; ...
0
votes
2answers
139 views

I have a list a and want to use (CSR) Jslink to change the view but multiple fields

I have a list but want to use CSR - jslink to change the view of multiple fields. Can a jslink have multiple fields to change. Looking at the samples here Would like to merge 2 or 3 script in one ...
0
votes
0answers
31 views

JSLink file cannot have underscores

I couldn't find this from google but I had a hard time getting a .js file work for client side rendering/JSLink. I had the URL parameter in there correctly and everything. The code seemed to be proper ...
0
votes
2answers
229 views

Hiding Document Library columns used by JS file (JSLink)

Good day, Currently I have a "schedule" list (document library) which is used to store vessel schedules. Shedules uploaded are Excel files, which have named cells linked to custom properties in order ...
0
votes
1answer
72 views

Writing sharepoint CSOM applications best practices

What is the best way to write sample snippets of code Visual studio 2012- Create a SharePoint App project. Issue :-Every time you need to query the list on the host web you need to query the ...
1
vote
1answer
174 views

SP2013 Custom View via JSLink TypeError issue

I'm currently customizing a Library View, by using CSR and JSLink. The view is rendering items by "Modified" date DESC. The custom view has to display the 5 last modified pages, and the more recent ...
3
votes
3answers
377 views

SharePoint 2013 List View Accordion Render

We're looking to implement a Q&A section on one of our SharePoint sites. To make interaction easier on end users I've been looking for a way display list content differently. I stumbled upon an ...
3
votes
3answers
299 views

Best approach to create footer links

I want to create footer links inside my master page, and I was wondering what's the best approach to achieve this, do I create a SharePoint List to store my lists and embed it as a list and change its ...
0
votes
1answer
57 views

JSLink - SP not updating code

I have a .js file stored on the Site Assets library. Today I updated it (uploaded file of the same Name and replaced the old one). But the new code seemed not to work. After lot's of debugging and ...
0
votes
1answer
104 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
175 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
182 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
143 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 ...
1
vote
1answer
181 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
96 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
2answers
71 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
105 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
91 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
134 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
98 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
104 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.