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
7 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
18 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
36 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 ...
0
votes
0answers
9 views

How to prevent more then 1 dialog boxes opening on page at a single time

I am trying to open dialog box but it is opening 2 times. function postRenderHandler(ctx) { var jsViewContainer = $("#WPQ2_ListTitleViewSelectorMenu_Container"); var jsViewLink = ...
0
votes
1answer
24 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
21 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
13 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
10 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
0answers
16 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
62 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
67 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
24 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
99 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
45 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
64 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
126 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
192 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
44 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
77 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
121 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
127 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
77 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 ...
0
votes
1answer
103 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
68 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
53 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
83 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
63 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
86 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
77 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
60 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.
1
vote
0answers
39 views

SharePoint 365: Change Lookup Column to Render HTML

In a Document Library I have a workflow that make a link to the document in a library for example <a href="https:/xxxx/label/GFN1671-01.pdf" target="_blank"> GFN1671-01 </a> In a List ...
1
vote
2answers
82 views

How do you use JS Link with Pages?

I'm trying to make a JS Link script that will work with my site's Pages list. Basically I want to display a simple list of page titles. I'm using the Pages Web Part (Web Part > Apps > Pages). var ...
4
votes
1answer
168 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 ...
1
vote
2answers
215 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 ...
2
votes
1answer
47 views

JSLink on Public Facing Site

I'm just learning about this JSLink technology and have a simple question. Does it work on public facing sites because it's not for me. Seems nothing works on public site. What I've done: copied a ...
1
vote
2answers
158 views

Can't get JSLink to work on external list

We have an external list surfacing data from a homegrown data source and I need to modify some of the values using JSLink (formatting dates, color-coding based on values, etc.) I have a web part ...
0
votes
1answer
85 views

How to apply JSLink to the custom new form of list?

I have created custom new form for list using SharePoint designer, to customize the behavior of OOTB SharePoint. The functionality which I wanted to achieve is complete but I am not seeing the option ...
1
vote
2answers
83 views

How to add content above list view using JS?

I am using JSLink code I found at Office Dev Center to modify my fields showing percent values to display progress bars. What I would like to do further is add some text above the list itself, ...
0
votes
0answers
67 views

Hide 'View Entries' if the field is blank - Multiple lines of Text Append Changes

I have a 'Multiple lines of text' field on a custom list that has 'Append Changes' enabled. My client would like to hide the 'View Entries' link (in the List View) if there is nothing in the field. It ...
0
votes
1answer
246 views

Make List Item Attachment link clickable with JSLink

I am generating a link to a List Item's attachments using the following code. It works perfect, but it is slowing down the loading / paging of my List view significant. Does anybody know of a more ...
0
votes
0answers
90 views

JSLink OnPostRender to modify list totals only works before filter

I'm working with Office 365 and have just started using the JSLink facility to manipulate the presentation of a list via the link on the list view web part and on the whole it's doing a great job. ...
0
votes
1answer
149 views

Hide Title Field

Im creating a sharepoint list with Javascript, now i want to hide the title field in the same process. How can i acchieve this?, i was trying to add a jslink , and in that document, hide the title ...
1
vote
1answer
38 views

Enable Data View Caching JSlink

I have Enable Data View Caching unchecked and when i firts go in to my list i select the items i want to set color on press the button (pic1) and then it looks like this (pic2) when i after that ...
0
votes
0answers
41 views

Jslink on field in hostweb to load script from appweb?

is it somehow possible to load jslink script from appweb on the field that is in hostweb? Absolute url for jslink does not work ...
0
votes
1answer
360 views

JS link 2 different templates for 2 different views of same list on 1 page

I have 1 list that I want to display in 2 different ways on the same page. When using the jslink property included in the OOTB listview webpart only one display template gets rendered for both ...
1
vote
2answers
949 views

Using Different BaseViewID values for multiple JSLink on a single page

I've been working with JSLink customizations for a couple different Custom Lists we have and they've been working fine when on a page by themselves. Recently I needed to include multiple Custom Views ...
0
votes
1answer
169 views

JSLink does not load in Calendar view

I have a Calendar list. I added JSLinks to all views, and most of the files are loading as they should and they work ok. However in the Calendar view the *.js file is not loaded (the path to the file ...
2
votes
1answer
273 views

Jslink field run function after field is rendered

i did registered function for custom field rendering with RegisterTemplateOverrides and my custom field render works quite nicely. Part of the field is input box for autocomplete, my issue is how to ...
1
vote
1answer
241 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 ...
1
vote
2answers
815 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 ...