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
1 answer
61 views

Color Code SharePoint 2013 Column based on Date Column

I followed this post on this site about color coding a SharePoint Column based on a date column. This worked really well and I got the result I wanted. I followed the answer from @chris-g. Below is my ...
Kelsnz's user avatar
  • 43
0 votes
1 answer
61 views

Removing Column Header using JSLink

I know this is probably an easy thing, but I'm not finding it anywhere (my GoogleFu isn't up to par, I guess). I'm trying to remove column headers in a list when reformatting using JSLink. We are ...
Pᴀᴜʟsᴛᴇʀ2's user avatar
0 votes
1 answer
46 views

Customizing All Views of Document Library To Open Another Form Page On Any File Upload Action

I've seen a couple of posts in this forum that are somewhat related to users wanting to set up a custom upload form which requires users set metadata (column values) before an upload is permitted. I ...
Steve Penn's user avatar
0 votes
0 answers
104 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 ...
Jade's user avatar
  • 1
0 votes
1 answer
35 views

Add custom javascript to application page

Is there any way to add JavaScript to a custom application page that is deployed to _layouts/CustomFunctionality/ without any server side deployment ? I have a custom NewForm.aspx where I need to add ...
David's user avatar
  • 39
2 votes
2 answers
146 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?
David's user avatar
  • 39
1 vote
2 answers
188 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 () { ...
Mike's user avatar
  • 11
1 vote
1 answer
20 views

Calculating how long a user spend in NewForm and EditForm using InfoPath Forms

Based on this question: Calculating how long a user spend in New form and editform.aspx I am having trouble adding the JSLink to the WebPart of the InfoPath Form. When I go to Edit WebPart, the field ...
JRossi's user avatar
  • 47
2 votes
2 answers
737 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 ...
santosh kondapalli's user avatar
2 votes
1 answer
45 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 ...
Adder's user avatar
  • 21
0 votes
2 answers
52 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 ...
OLA's user avatar
  • 211
0 votes
1 answer
84 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 ...
OLA's user avatar
  • 211
0 votes
1 answer
430 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. ...
Priyanka Thakur's user avatar
0 votes
2 answers
147 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 ...
Sharepoint User's user avatar
1 vote
1 answer
38 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 ...
user14010662's user avatar
0 votes
2 answers
226 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 ...
BBRK's user avatar
  • 55
0 votes
1 answer
821 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
Kailash Sahoo's user avatar
0 votes
1 answer
105 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 ...
AlexGR's user avatar
  • 21
0 votes
1 answer
96 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 ...
SteffPoint's user avatar
0 votes
1 answer
472 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-
ChasEpes's user avatar
0 votes
1 answer
106 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. (...
Vijay's user avatar
  • 302
0 votes
0 answers
36 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. (...
Vijay's user avatar
  • 302
0 votes
1 answer
44 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 ...
Jason Hough's user avatar
0 votes
2 answers
726 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 ~...
naijacoder's user avatar
  • 4,174
1 vote
1 answer
66 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 (...
Sarah Grzymkowski's user avatar
2 votes
0 answers
32 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 ~...
Ciamas's user avatar
  • 176
1 vote
1 answer
46 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) ...
Padma Priya Balapa's user avatar
1 vote
0 answers
80 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 ...
Chuck Farley's user avatar
  • 1,159
0 votes
0 answers
27 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
Pradeep's user avatar
  • 483
0 votes
1 answer
192 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 ...
Shinobii's user avatar
  • 139
0 votes
1 answer
70 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'.
AM2FTW's user avatar
  • 437
0 votes
1 answer
173 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 ...
Omegacron's user avatar
  • 1,802
0 votes
0 answers
32 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 ...
Jenew's user avatar
  • 3
0 votes
1 answer
56 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 ...
AlexGR's user avatar
  • 21
0 votes
1 answer
219 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 ...
Bob's user avatar
  • 1
0 votes
2 answers
1k 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 ...
Younglz2312's user avatar
0 votes
1 answer
561 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 ...
T Zhang's user avatar
  • 195
0 votes
1 answer
119 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 ...
JoshuaM's user avatar
1 vote
1 answer
1k 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, ...
Cory Cox's user avatar
0 votes
0 answers
20 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 ...
user3799810's user avatar
0 votes
1 answer
250 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 ...
Pradeep's user avatar
  • 483
0 votes
1 answer
283 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":"...
Pradeep's user avatar
  • 483
0 votes
1 answer
320 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 ...
Surendra Mourya's user avatar
1 vote
1 answer
884 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:...
Daniel's user avatar
  • 11
1 vote
1 answer
419 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). ...
SteffPoint's user avatar
4 votes
4 answers
813 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 ...
SaadRH's user avatar
  • 63
0 votes
1 answer
216 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 ...
frank shortt's user avatar
0 votes
1 answer
107 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 ...
KCRyan's user avatar
  • 101
0 votes
1 answer
43 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 = {}; ...
Shinobii's user avatar
  • 139
0 votes
2 answers
57 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 ...
Rothrock's user avatar
  • 2,930

1
2 3 4 5
9