Questions tagged [client-side-rendering]
Client Side Rendering in general is a technique to offload part of the HTML content rendering workload from server side to the client's browser. In SharePoint 2013 JavaScript-based CSR templates partly replaced XSLT (remember, you can still switch to server rendering in web part properties).
272
questions
0
votes
1
answer
26
views
How to use JavaScript to conditionally format a grouped view of a SP13 list
I have found examples that allow for highlighting a row based on date, I need to also highlight the 2 group tabs above that row
example
Group(highlight red if any row in group meets condition)
...
0
votes
0
answers
177
views
Color Coded Columns in SharePoint 2013 classic view
I am trying to create a custom list that has custom color coding that is dependent on what the choice field values.
I have tried to save my JavaScript file to my site assets and master pages of the ...
0
votes
1
answer
103
views
Updating UserMulti field using CSR
I am trying to update a UserMulti field using CSR. However, no matter what value I send to SharePoint, the field remains empty.
This is my field definition:
<Field ID="{5EE8AF75-009D-4FBB-8AC9-...
2
votes
2
answers
201
views
Submit EditForm event handler with CSR/Jslink
Is it possible to add custom event handler to the submit button of Edit Form through CSR/JSLink?
If yes, any documentation/links or example that I could use to achieve this with pure CSR?
1
vote
2
answers
361
views
Using javascript I need to highlight a row if it is within 14 days of becoming due via due date, and red it if is past due or today
So I have this code that I found here at Stack Exchange that lets me highlight rows based on date:
SP.SOD.executeFunc("clienttemplates.js", "SPClientTemplates", function () {
...
2
votes
2
answers
1k
views
How to get the Alternative text for "Hyperlink or Picture" field Type in SharePoint online
I have a field in my SharePoint list of type Hyperlink.
I want to format the list view so that all the items in it will display as bullet items.
I am using JSLink and below is my code. I want the DOM ...
2
votes
1
answer
49
views
JSLink for CSR works for only one user
Environment: Sharepoint 2013, using a Sharepoint list
Have a simple JSLink script located in ~site/Style Library/JSLink/ that applies coloring to a specific list field (RAG Status) depending on its ...
0
votes
2
answers
72
views
SharePoint jsLink replace picture field with value from another field
I would like to override a field with an image using the value of another field. So, I have an image library and the Name field captures the name of the image file. I also have a Hyperlink or ...
0
votes
1
answer
97
views
displaying SharePoint image name as image using jslink
I have a picture library in SharePoint 2016 with the ratings enabled. I want users to be able to rate each picture in the library. In the display view, just the image icon shows and not the actual ...
0
votes
1
answer
598
views
Enable/Disable the Toolbar of the ListView in a WebPart in Sharepoint 2013
I want my listview to have the toolbar as shown in the below pic. This list view is bound to a Document Library. I am new to SharePoint and have no idea how to enable or disable it when needed.
...
0
votes
1
answer
110
views
CSR: how to default value render
Tell me how to set the default display of an element? Didn't find any good example anywhere on how to return the style and value of a list item to its default?
(function () {
var ...
0
votes
1
answer
276
views
Hide SharePoint list content/rows based on user group permissions
I'm a little padavan when it comes to coding;)
I looked for the following codes via google and pieced them together;)
but now of course I have reached my limits;)
I have a Sharpoint Grouped Listview;
...
0
votes
1
answer
153
views
CSR color coding row of list not showing correctly when list is filtered
Before i show my code, let me give some background.
I am using JSLink in the webpart of the list. I have MDS disabled for the site.
my javascript file is located in my root sitecollection in Style ...
0
votes
2
answers
268
views
Unable to Hide column in SharePoint List View web part using JSLink Client-Side-Rendering
I'm trying to hide a column in List View Web Part using JS Link with Client Side Rendering. I'm able to color or make formatting changes to the column, but not able to hide it. Below is the code ...
0
votes
1
answer
585
views
SP 2013: Highlight Row if Field Value is empty
I need a script to highlight rows in a SP 2013 List if one field is null/empty.
Any help is appreciated!
Field: [Date Funded]
Thanks-