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
8 views

Explanation on this.Init within the JS Grid Events example

Prev Question Link: Sharepoint 2013: Can you control the input of a Datasheet View? I had previously asked a question on being able to manipulate the information within a Datasheet view and was ...
0
votes
2answers
38 views

Sharepoint 2013: Can you control the input of a Datasheet View?

Goal : Prevent user from inputting duplicate information through Datasheet view. To add some context, duplicate information was being inputted into a library list. To resolve the issue, I created a ...
1
vote
1answer
16 views

Why does the SP.SOD.executeFunc function not work properly?

I use this code to compare two dates, the date of today and the date in the list item. On the screen the dates look fine but when I check them in the debugger the dates are way off. Some are even one ...
0
votes
2answers
46 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
1answer
54 views

Getting all Content Editor web part details who are using Custom Script using Powershell in SharePoint 2013

I want to find out all the Content editor web part details who are using Custom Script, JSlink using SharePoint Power Shell. Please help me on this Thanks
0
votes
1answer
25 views

Add color to specifc list cells after grouping

Faced a simple task. But I can’t find a solution. There is a regular list with 6 columns. But the list has been grouped according to one of the fields. (it is assumed that the list will be updated and ...
0
votes
1answer
40 views

JSLink - retrieve user details from a string field

I have a SharePoint-Field of type string, that contains a value such as: domain\usertoken From the string I would like to retrieve the person - and from the person I would like to retrieve some ...
0
votes
1answer
29 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-
0
votes
1answer
46 views

Customized New, Edit, Display forms using JSlink. SharePoint OOTB date picker not closing popup after selecting date

I have used JSLink to customize New, Edit and view form. Facing intermittent issue with OOTB date field. When I selects date field some times it is not closing calendar popup. I'm using IE 11. (...
0
votes
0answers
32 views

SharePoint OOTB date picker with JSLink not closing popup after selecting date

I have used JSLink to customize New, Edit and view form. Facing intermittent issue with OOTB date field. When I selects date field some times it is not closing calendar popup. I'm using IE 11. (...
0
votes
1answer
29 views

Chosen.js with JSLink, vlaue missing in Editform.aspx

All, I am using this jslink code for chosen.js on a multiple choice lookup column.. The problem is that when you click properties and look at the metadata the value is blank - any ideas at all so ...
0
votes
2answers
112 views

Add to Hyperlink to column in SharePoint List using JSLINK - Help

I'm having issues adding a hyperlink to a field using the below. My column field is called LinkTitle (single Line of Text) My view is called Dashboard and i have refrenced the js like so ~...
1
vote
1answer
25 views

CSR - JS Link - Status Indicators for Task Type

I have a SharePoint workflow that is creating a task when a document is uploaded. There are four stages of tasks and what I am looking for is a replacement of the text with a visual icon/status bar (...
2
votes
0answers
31 views

Subsite provisioning from WSP - JSLinks

We are provisioning the subsites from a saved template (WSP). Everything works properly apart from the JSLinks in list forms, these are not being loaded. What we have noticed is that the ~...
0
votes
0answers
16 views

Unable to edit the List Search Box value on pagination in sharePoint 2013 list

I have customised the list searchbox . Search Results are coming properly based on the keyword in all pages. But Unable to edit the search key value in the next pages. I have limited the item count as ...
1
vote
1answer
31 views

SharePoint Online, Webpart and JSlink issue

I have a very weird issue, working fine for last 4 years and now unable to resolve. List called tools, has its own custom views. I add the list webpart to the page, set the view (Business Systems) ...
1
vote
0answers
25 views

How can I capture a URL Parameter on a list page so that I may append it to the URL of an “Add New Item” button?

Scenario: I have a list page that has already been filtered from a prior table via a URL parameter. How do I carry that URL parameter over when "create a new item" button is clicked? Issue: On the ...
0
votes
0answers
22 views

SharePoint page redirects back to page library

I am facing this issue that whenever I am creating a page in Pages library, after adding a list webpart to this page and on save it redirects me to the Pages library. And also when I click on this ...
0
votes
0answers
20 views

JSLink to get the number of files under folder

we need to display the number of files for each folder in a library how can we achieve this through JSLink? please help me with some code samples
0
votes
1answer
57 views

Set list value via JavaScript

I currently have a JavaScript that calculates the current activity of a radioisotope; however, it only displays the value (it does not actually set the field equal to the value). How can I go about ...
0
votes
1answer
32 views

Rename 'Like' link in custom lists

Is there a way to rename the Like/Unlike links in a custom list where rating has been enabled? 'Like' in our case would be misleading so we would like to have it show up as something like 'Confirm'.
0
votes
1answer
56 views

Is it possible to replace text of edit link without breaking functionality?

I have several SharePoint 2013 document libraries where I want to show the full document name (incl. file extension) instead of the default Name field. I know how to do this in a DVWP or by modifying ...
0
votes
0answers
23 views

Add linkToItem using Javascript

I am trying to add a hyperlink on a column which leads to the edit item menu. I know that it is possible to do this with SharePoint Designer, however as there is no more support for it, I would love ...
0
votes
0answers
141 views

Exception calling “ExecuteQuery” with “0” argument(s): “Unknown Error”

I am working on a modern team site collection inside our sharepoint online tenant. I want to associate a JSLINK with a site column, so i run this PnP script:- $User = "***@***.onmicrosoft.com" $...
0
votes
1answer
54 views

Simple task: How to recolor a list line? [duplicate]

I just started learning Sharepoint. I have a problem that I can’t solve. There is a list. It is necessary that for a certain value in a particular column the display of a particular row changes - the ...
0
votes
1answer
77 views

SharePoint 2013 - format webpart list column text not based on a condition

I would like to change the color and text size of a calculated column in a SharePoint 2013 not based on any condition. Searching online I have only been able to to find ways of applying conditional ...
0
votes
2answers
396 views

Change Column background color and text color

I am trying to change the background color of a specific column in this webpart because it's using percentage and not text I can't figure out how to get sharepoint 2013 to change the entire column a ...
0
votes
1answer
221 views

sharepoint 2013 list expand/collapse multiple line text column

I'm desperate and need your help on this script. I have a "multi line text" column named "Comments", and i added the following script into a script editor but it is not working for me. could you ...
0
votes
1answer
48 views

Client Side Rendering

I have followed the guide (https://www.c5insight.com/Resources/Blog/tabid/148/entryid/653/how-you-make-sharepoint-announcements-grab-attention-easily-using-csr.aspx) to implement some client side ...
0
votes
1answer
365 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
11 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
157 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
73 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
149 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
260 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
139 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
442 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
1answer
137 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
60 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
1answer
36 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
31 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
574 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
2answers
155 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
27 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
90 views

Change background color on list view selector

I have a few list views on SharePoint 2013. I want to set background color on the list view selector or set font color. How to do it? Thanks!
0
votes
1answer
105 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
64 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
33 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/...
2
votes
2answers
220 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
736 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 ...

1
2 3 4 5
9