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
20 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 ...
0
votes
1answer
12 views

ViewData filed in the Schema.xml is not defined in the JSLink script

I have defined a site column which is rendered based on another column's information. Since I am not going to show that other column I define it in like: <ViewData> <FieldRef ...
0
votes
1answer
24 views

CSR Not working for multiple fields

Hi I have requirement to give display form link to the title and making description short for document library view. I have added below code using jslink. The title is rendering as per my ...
0
votes
0answers
20 views

Accessing other web from same site collection in SharePoint List View JS Link

I have Category list in one site and Fruits list in other site in same site collection. I want to show all the fruits in Category list view column "Fruits". Below is the code i have written, i am ...
2
votes
2answers
58 views

SharePoint 2013 JS Link edit form control

I have below code snippet to make fields in a SharePoint list edit form read only under certain conditions. This works fine but what I would like to know is how I can return the edit control for a ...
3
votes
1answer
33 views

modifying a site column using powershell without affecting its child list columns

I have a site column of type "Text", and users have assign this column a default value at the list level. so now my site column contains null default value, while its child list columns are having a ...
0
votes
2answers
56 views

JSLink doesn't “work” when limiting the items in a list view

I put custom stuff like textboxes and labels onto my list view via <JSLink> tag in Schema.xml. Additionally, I colorize list items <tr> background based on a field value. It all has to be ...
1
vote
0answers
15 views

The other parameters for the CSR VIEW Template function

function myCSRtemplate( ctx ) All CSR examples out there only pass the ctx object to the template function: FieldContext.Templates = {}; FieldContext.Templates.Fields = { "myColumn": { ...
4
votes
1answer
66 views
+50

CSR is also applied to a Group By header in a ListView

The only decent blogs mentioning CSR and Grouping are: http://www.codeproject.com/Articles/620110/SharePoint-Client-Side-Rendering-List-Views (must read) ...
0
votes
0answers
13 views

How can I attach an event listener to a JSLink field?

I'm making a custom autocomplete text field, how can I attach javascript events to my control?
1
vote
0answers
5 views

How does one alter the appearance of a managed metadata value in a list using JSLink?

Just getting started with JSLink, and ran into a situation that I don't understand. I have a list, with a managed metadata column; ProjectStatus. Initially, I treated this just like any other column ...
0
votes
1answer
44 views

Import CSS File to Jslink

How can i import .css file to .js file ? I m not talking about html page. Html page is not in our control. i m using share point inbuilt page Newform.aspx and applying jslink on this page. in jslink ...
0
votes
0answers
24 views

Text box event handled by jslink and jquery

I have created my own Text box control using jslink in SharePoint on NewForm.aspx. i want to handle text changed event in jslink. I have given my code below .. (function () { // ...
1
vote
3answers
63 views

Get Text box in JSLink of NewForm.aspx in SharePoint 2013

How can i get Text Box Id in SharePoint NewForm.aspx ? Using Js-Link . . i want to bind Color-picker Control of Jquery to Text-box .. Can anyone have an idea about this? kindly give me suggestion. ...
0
votes
0answers
24 views

Cascading Dropdown using JSLink

I have created custom dropdown in newform using JSLink. Both are working fine. Now i want to make cascading dropdown. I searched a lot but i got using SPServices and other third party JS. I want to ...
0
votes
2answers
45 views

JS Link SharePoint 2013

I'm trying to implement JS Link on SharePoint 2013. However, I can't seem to make it work. Uploaded a sample .js file in Site Assets with a simple alert message. <script> alert("test") ...
0
votes
1answer
27 views

Replace table with <div> in displayform

I have a custom list and when I view a single item the standard DispForm.aspx is used to display the item I am able to override those fields via JSLink but is it possible to override the table itself ...
0
votes
1answer
56 views

JS Link View Overriding for date

I have a date column in my custom list. When i try to override the view of the field by using the TemplateOverride Function, my Javascript wont work on! The same problem occurs for Multiple Choice, ...
0
votes
2answers
40 views

Change NewFrom using JSLink

I have to customize the NewForm and EditForm using JSLink. Perhaps there is another way of doing this. So what I would like to know are these: How can I make a field required or not depending on ...
1
vote
1answer
29 views

JSlink changes after creating site from template

I created a site with several lists and several CSR renderers for those lists. I applied the renderers to the forms via JSLink. Then I tried to save the site as template and create another one from ...
0
votes
0answers
89 views

Losing the selected drop down value when reloading the page - JSLink

I have an EditForm that I am using JSLink to run some javascript that gets the Content Type and then sets the options in a drop down box according to the Content Type. This works fine, but now the ...
0
votes
0answers
44 views

Can not prevent editting a field inside the Quick Edit using JSLINK

I have a site column named "Item Number" with internal name of "ID1", as follow:- PS H:\> $web.Fields["Item Number"] FieldValueType : System.String PreviewValueTyped ...
0
votes
1answer
77 views

Unable to hide a column from the “Quick Edit” grid using JSLink

I have a custom site column named "Item Number". now i want to force this column to be un-editable inside the Quick Edit grid. now when i try to edit the site column (Site Setting>> Site Column ...
0
votes
1answer
108 views

Hidding Forms; fields using standard jquery versus using JSlink. which approach is better

I want to hide some fields from my Edit & New forms, and i need this to apply to all the subsites. now if i hide the columns from the Content type they will appear again when users modify these ...
1
vote
1answer
21 views

Styling the Discussions List

I am styling the discussions list web parts using CSR / JS Link. The OOB discussion list contains several buttons that allow you to select various "views", such as recent, what's hot and my ...
0
votes
1answer
53 views

JSLink conflict with lists of the same type (List Custom 100)

Problem I've two custom lists with ListTemplateType = 100. When I insert both into a page, the last rewrite the first. I tryed add BaseViewID with diferent ID, like this question. But anything ...
1
vote
1answer
63 views

In SP Online, how to return the default HTML of a lookup field when overriding the Item Template in a list view

I've found various methods to return the default values for the field template override, including lookup, but I have been unable to find or successfully implement a method to do the same for fields ...
0
votes
2answers
74 views

SP Online 2013 blog: jslink change to “created by” field corrupts comments list

I'm replacing the "created by" field in a blog posts list with a custom user defined "author" field using a simple jslink script. This works fine but when a user posts a comment, the jslink change ...
1
vote
1answer
91 views

Wrong cached version of a JSLink file

I have a strange problem with my JS-link files. Scenario I have placed a list webpart on a wiki page. On this webpart I have set the JSLink property to a js-file in the Style Library: ...
0
votes
2answers
60 views

CSR only works on a List View when same code is present in a Script Editor web part and also a JS Link

I'm still pretty new to SP and I've been trying for weeks to get JSLink to work on a SP 2013 List View (no formatting would ever show up and I didn't know if it was the javascript code itself or the ...
1
vote
2answers
101 views

Using JSLink to manage and output list groups and items

so I am currently using JSLink to change the look and feel of my List view, but am getting a little stuck in getting the HTML hierachy of my elements right. This is my current code... function ...
2
votes
0answers
51 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
66 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
23 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
91 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
160 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
146 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
65 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
59 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
479 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
54 views

JS Link on External list views (BCS)

How can I apply SharePoint Client Side rendering (JSLink) on an external List?
0
votes
0answers
42 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
102 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
82 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
348 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
53 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
33 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
30 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
768 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 ...