Questions tagged [jslink]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Sharepoint 2013, JS link people picker field not working saving for multiple users

I am using below CSR code to set peoplepicker value to multiple person. I have multiple users to be assigned to my peoplepicker field. The code works when i pass current user, but it do not work for ...
0
votes
1answer
15 views

SharePoint 2016 Calculated Column Link Problem

Good day, I have a project and a very tight deadline. I have developed a tool for managing events. The system was developed in SharePoint 2010 which was migrated to 2016. I used a calculated column, ...
0
votes
0answers
6 views

JSLink not working

We have some custom JSLink code embedded in the edit form which works if a user opens the edit form directly, say to edit properties etc. However if the edit form is opened during the document ...
0
votes
1answer
20 views

JSLink for same list view webpart in a page hide some fields

we need to create single jslink file for 2 same list view webparts configured on the same page here are the rendering rules that is defined First Webpart should have some columns to be shown/some ...
0
votes
1answer
22 views

Rendering Multiline text value (JSON Format) which has Email ID Values in JS Link

we need to create a JSLink with multiline text value (Stored as JSON) with values seperated in three different columns sample schema for MultiLine Column: [{"email":"John@xyz.com", "skypeid":"...
0
votes
1answer
19 views

Add jquery reference to JSlink file

I am using JSLink feature of SharePoint 2013, My JSLink file has code to get current user id and other details, for this I need to add reference of jQuery file. I tried adding those files in in ...
1
vote
1answer
43 views

Color Coding List Item by Web Part based on value

I am currently trying to get color coding on a list to highlight good medium and bad properties. I have tried to follow the examples shown here for color coding: SharePoint 2013 Client Side Rendering:...
1
vote
1answer
39 views

Get certain field from returned JSON object

I am editing a SharePoint List using JS Link. Within a SharePoint-Column, I would like to display information from another SharePoint column. The source is a SharePoint Person Column (Entliehenan). ...
4
votes
4answers
111 views

How to add JSLink to a field through pnp?

I am trying to add a JSLink to my field through pnp so that it displays diffrently in the edit/new mode in the list that it is connected to, the problem i am having is that pnp throws an unknown error ...
0
votes
0answers
13 views

SharePoint Online: How generated default toolBarTbl using JSLink (CSR)?

In my project I have to customize the custom list display form. I used jslink with the webpart properties: I overwrite the rendering Body function and I would like to generate the default toolBarTbl ...
0
votes
1answer
46 views

Using CSR to hide field on list view but show on quick edit view

Is it possible to use the "ShowInGrid=True" element of the URL to act as a trigger for show/hiding a field in a datasheet view? The below code that will hide it nicely on the default allitems view ...
0
votes
1answer
25 views

Use JS Link to Override Multi-Selector Field Rendering

I am working in SharePoint 2016 on-premise. I have a Lookup column that allows multiple values. It renders as the usual SharePoint multi-selector. I'd like to switch the rendering so it appears as a ...
0
votes
0answers
19 views

Grouped List coloring with js link not working

Based on this link in SharePoint2016 i tried to color a list. I failed. First everything was green. Then yellow. Now no longer work at all now no matter what i do (even using previous script). What ...
0
votes
1answer
23 views

JSLink not modifying text

I am trying to get a super simple JS script to work on my SharePoint. I found this example here. This is what I am working with: (function () { var statusFieldCtx = {}; statusFieldCtx.Templates = {}; ...
0
votes
2answers
27 views

How to extract parts of a URL column

I've got a jslink client-side rendering file for an edit form. It has a url column for which the basic structure of the item data is returned like: "https://<link path>,<friendly display for ...
0
votes
1answer
214 views

Truncating our multiple line text fields inside our list views using JSLINK

I am working on an online sharepoint custom list. and we are rendering our list inside the classic UI. now inside the custom list's list view we have 3 fields of type multiple line of text. And if the ...
0
votes
0answers
12 views

Adding JsLink to Styled List

I have a List which I have created a view using the "Preview Pane" style I would now like to add a JsLink file so that I can restrict certain elements based on javascript (There is no search ...
0
votes
2answers
85 views

showModalDialog passed arguments not available on load

I have a page that is using SP.UI.ModalDialog.showModalDialog() to open a NewForm for a list. In the open code I'm passing some values in the args options property as described in this documentation. ...
0
votes
2answers
22 views

JSLink Was Rendering Then Stopped

I have two JSLinks on Custom List Webparts on my page -- one for a bootstrap slider, which is working fine continuously, and one for an announcements webpart. The announcements webpart was working ...
0
votes
1answer
38 views

JS Link Conditional Formatting Paging Not Working

I've added a list view webpart onto a SharePoint 2013 online page, this webpart has a JS Link to a file containing JavaScript which applies different CSS to the CurrentRiskImpactLikelihood column ...
0
votes
0answers
36 views

Custom content type selector in jslink?

I'm trying to customize the content type selector from a jslink file. I tried the standard approach, but it does not trigger : (function () { var customContentType = function (ctx) { ...
0
votes
1answer
22 views

Share point 2013 on premise-How to configure js link after upload into site assets folder in list web part

SharePoint 2013 on premise: How to configure js link file after uploading into site assets folder in list web part. In list web part settings, in JS link I have configured: ~siteName/SiteAssets/...
0
votes
0answers
66 views

JSLInk Managed Metadata and Multiline text field

using JSLink for a list NewForm and I have 2 managed metadata fields and a multiline text field. Only the last Managed metadata field is rendering. What am I missing? (function () { // Create ...
2
votes
2answers
125 views

JSLink - How to check the list item whether is draft?

I wanted to highlight list items which is checked-out and draft. I found a solution for checked-out items but I couldn't find how can I check the list item is draft (minor version). I am sure that ...
2
votes
2answers
253 views

How to highlight the row in red if expiration date is passed for SharePoint 2013 list

I am working with SharePoint 2013. In one of the lists, I have a date column called "Contract Expiration Date" (Internal name: ContractExpirationDate) which contains a date value. what I want do is ...
3
votes
2answers
159 views

JSLink support for document libraries in the Modern UI

do JSLink customizations work well in the modern UI for document libraries? I saw couple of articles which says NO JS/CSS Customization in modern UI Please advise on the same
4
votes
2answers
656 views

Can i add a JS Link to a list view in modern interface

I have the following JS link , which i have added to classic interface inside our sharepoint on-premises 2013:- (function () { function registerRenderer() { var ctxForm = {}; ...
2
votes
1answer
55 views

JSLink on Custom Form

Is JSLink exclusive to default forms? The JSLink field exists on my default forms, like below: However, it does not work when I create a new custom form via SP Designer, as below: Is this expected? ...
1
vote
1answer
136 views

Jquery code doesn't work after SharePoint ListView paging

I wrote a custom onclick event for a class in jquery, I have attached the script with JS link of listview web part. There is default paging in the listview web part. In first page the click event ...
0
votes
1answer
98 views

Modern-UI JSon Total Days Calculation in a custom-list allitems view

I needed to show the day the item is in open status. The days are only displayed in allitem.aspx. I was able to use JSLink to achieve it in classic UI. When the user switches to Modern UI, JSLink does ...
0
votes
2answers
59 views

Stoplight Indicators Pulling From Multiple Columns

I have a requirement asking for some crazy If/Then statements for stoplights. Fields I have: Need Date Column = Date/Time field Open Date Column = Date/Time field Modified Date = Date/Time Field ...
0
votes
1answer
120 views

How i can check if my Date Time field is less than Today() date inside JS script

I have the following JS script to color code our custom list items inside out list view, by checking if the item is status does not equal Delivered and its EndDate has been bypassed:- SP.SOD....
1
vote
0answers
33 views

Issues with trying to hide a column with JS Link in multiple webparts on the same page

I found a solution in the below post to hiding columns using JS link. However, I have multiple webparts on a page with different views of the same list and it is only hiding the columns in the first ...
0
votes
0answers
69 views

How to remove duplicates from the drop-down using jslink

I am using below listed JSLink code to perform cascading and its a working version except one issue. The Drop-down shows duplicate values because of how things are populated in the reference list, can ...
0
votes
1answer
152 views

JSLink code to filter lookup columns work on a Custom list's new and edit item form but not on document library edit item form

I am using JSLink code to filter lookup column to show relevant values. The same code works well on a custom list's edit form but breaks on the document library's edit form. I checked the ID of lookup ...
0
votes
1answer
42 views

Embed javascript with jslink

I have a simple javascript demo file [demo.js], stored in the [sitecollection]/[site]/SiteAssets/Scripts directory: <html> <body> <script type="text/javascript"> ...
3
votes
1answer
435 views

How to edit the default message (There are no items to show in this view) on an empty list-view webpart

I have 3 separate list-view webparts on a page and I want to modify the default message when a list-view webpart is empty. But I only want to apply this on one of these 3 list-view webparts. The code ...
0
votes
1answer
200 views

Sharepoint Online: Display publishing image and created by fields in dispform.aspx via csr

I've applied a csr js file to overwrite the rendering of dispform.aspx for a simple list. This displays every field correctly except for a publishing image and the created by fields which return "...
0
votes
2answers
596 views

Is JSLink disabled in SharePoint Online?

Chris Cundy shared a link. 2 hrs Is JsLink disabled in SharePoint Online? I have been trying to get a CSR script that styles an annoucements list to work via JsLink however the style is not being ...
1
vote
1answer
206 views

Can't Open “Wiki page” in SharePoint Dialog Box SharePoint Online

Here is the code that I am using function openDialog(pageUrl,title) { console.log(pageUrl+title); var tempTitle= title.replace(/%20/g,' '); SP.UI.ModalDialog.showModalDialog( { ...
3
votes
3answers
326 views

Issue in lookup field when items are too large in lookup list

I have issue in lookup field. When item in lookup field are too large, it throws error "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string ...
1
vote
2answers
982 views

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
0
votes
2answers
731 views

How do you enable paging in a Sharepoint List View Webpart using Client Side Rendering

I have a list of a custom content type and are using a JSlink file to render the content of the list in a list view web part. I would like the list view webpart to display 30 items from the list with ...
0
votes
1answer
73 views

Extend List using JS Link with HighCharts

In a list view I want to override a value with a small chart with HighCharts... The Basic idea: Render the highchart into the jquery container and then return the HTML code: (function(){ ...
0
votes
1answer
317 views

JSlink: 'Title' and 'Description' returns as Undefined

Any help? Other fields such as ID works fine.. window.COB = window.COB || {}; window.COB.accordionItem = { customItemHtml: function (ctx) { var accordionItemHtml = "<div title='" + ctx....
0
votes
1answer
232 views

How to render list “LinkTitle” field using csr/jslink

the internal field name for "Title linked to item" is "LinkTitle" When added to a csr file though it's undefined. function CustomItem(ctx) { // Build a listitem entry for every item in the list. var ...
0
votes
2answers
95 views

Search Box (list web part) Error: TypeError: Unable to get property 'split' of undefined or null reference

Team, When I attempt to use the search box in a list web part I get the error, "TypeError: Unable to get property 'split' of undefined or null reference" Setup: On a Sharepoint 2016 page, I have ...
0
votes
2answers
519 views

How do I enable CSR to return the default rendering for a Select column in a list view web part that provides filter values to other list web parts?

I'm attempting to override the rendering of a Select column in a list web part that provides filter values to another list web part. In the code below, I'm attempting to not display the Selector icon ...
3
votes
2answers
66 views

How do I load user's data before JSLink renders the form

Below is my simple code to render the "Activitydescription" field in the newform.aspx. This is working. (function () { var ActivitiesListContext = {}; ActivitiesListContext.Templates = {}; ...
2
votes
1answer
500 views

Custom SharePoint List forms in SharePoint Framework

We are migrating old SharePoint 2010 On Premise code to SharePoint Online. Part of the SharePoint 2010 on premise code has custom list forms developed with visual Studio. Thought of using JSLink for ...