Questions tagged [jslink]

JSLink is the new feature introduced in SharePoint 2013, loading off the burden of XSLT webparts from the developer's mind.

JSLink is the new feature introduced in SharePoint 2013, loading off the burden of XSLT webparts from the developer's mind.

Questions having the tag regards the use of JSLink in SharePoint 2013.

Reference: JSLink - Custom JS Rendering in SharePoint 2013

421 questions
4
votes
2 answers

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 within the JS code as such: function…
ntwrkguru
  • 153
  • 5
3
votes
1 answer

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 the display form (DispForm.aspx). The ‘View’…
MichelleB
  • 31
  • 1
  • 1
3
votes
2 answers

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 copying the HTML markup from the original form as shown…
ChiliYago
  • 2,166
  • 9
  • 45
  • 70
2
votes
1 answer

JSLink get field with url

I have a field in my list, which is a url (field type is single line of text), and in my JSLink, I want to retrieve this field to assign it as src for an image, but when I use CurrentItem.SrcUrl, it brings something like this: url, which is not the…
SharePoint Freak
  • 1,378
  • 7
  • 26
  • 39
2
votes
1 answer

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, also because (obviously) everybody has it's own…
wheeler
  • 443
  • 5
  • 22
2
votes
1 answer

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: ~sitecollection/Style Library/Overview.JSLink.6.js The js-file is…
Dribbel
  • 2,906
  • 3
  • 31
  • 45
2
votes
1 answer

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 js file from online uploaded it to my public site…
user32248
  • 21
  • 1
1
vote
0 answers

How to group fields of a list under various tabs with JSLink

A simple tabbed view is achieved but I want that when the user clicks a particular tab then its corresponding fields are available for input only.
1
vote
2 answers

How to use jslink to change item row colour in a list view

I'm after a jslink to be able to add a background color to a list view. Like an alternate colour to make it more visible Any hints would be appreciated
naijacoder
  • 4,272
  • 26
  • 101
  • 188
1
vote
0 answers

Jslink is not loaded at all :(

When linking to jsLink file, with console.log - is not loaded. this is the script for example: I use it on the list view webpart as "jslink" property (I mean the address of it…
Eyal Segal
  • 51
  • 6
1
vote
1 answer

Applying a jslink on a field, how to know on which field the jslink is bound?

All samples and documentation I've red about JSLink shows that the field name must be known in the script file (ex:…
Steve B
  • 7,488
  • 8
  • 53
  • 107
1
vote
2 answers

SharePoint JSLink Help required - Run Asnc code in OnPreRender

I am using JSlink file and using two functions (OnPreRender, Item). I want to customize Item rendering but before that I want to get data from another list using OnPreRender. The issue I am facing that Item function executes before OnPreRender.…
Asif
  • 15
  • 7
1
vote
0 answers

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 and want to see the same custom display for both…
1
vote
1 answer

Deploy JSLink file with XSLTListView WebPart

Hi I want to deploy jslink file along with XSLTListView webpart inside a page. The webpart is deployed in the page like the following:
Brittany Rutherford
  • 878
  • 2
  • 16
  • 35
1
vote
1 answer

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 part. I assumed that if I added the JSLink…
hajamie
  • 113
  • 3
1
2