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
1answer
16 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 ...
0
votes
1answer
2k views

CSR Error: Cannot read property 'style' of null

Trying to color rows based off of the value of the "Status" column However I cannot get it working as it keeps giving the following errors: TypeError: Cannot read property 'style' of null ...
3
votes
1answer
5k views

Uncaught TypeError: Cannot read property 'toString' of undefined

I have implemented the jQuery UI autocomplete functionality on a input field using JSLink. It works like a charm when I test it using Internet Explorer 9, 10, 11 and Chrome. Some users are however ...
3
votes
2answers
1k views

Unable to get property 'get_current' of undefined or null reference in JSLink on list view

we need to filter list view items based on some conditions for which we need current context(sp.ClientContext). but we are getting undefined or null reference. we have also followed the solution ...
3
votes
3answers
2k views

Conditional formatting for SharePoint Online column.

I am working on a SharePoint Online 2016 site collection and need to add conditional formatting to a few drop down fields. The drop down options are: 1: Red, 2: Amber, 3: Green. I want the field in ...
1
vote
2answers
1k views

How do I hide list columns in a view

I have 3 list webparts on my home page. I've used this script to hide 2 columns on page load and changes (sorting, filtering). // Override list views to hide language columns based on locale ...
1
vote
2answers
1k 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 ...
0
votes
1answer
862 views

Filter SharePoint List based on values from another list

I'd like to filter SharEPoint list using values from another list via JS Link. I know how to filter using for example list of ID's. I found nice article for that but now I need firstly to connect to ...
0
votes
1answer
20 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 ...
0
votes
0answers
23 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 ...
1
vote
2answers
1k views

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 ...
0
votes
1answer
16 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 ...
2
votes
2answers
45 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
2answers
28 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 () { ...
1
vote
1answer
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 ...
2
votes
2answers
180 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 ...
1
vote
1answer
808 views

Where can the definition for GenerateIIDForListItem(ctx, x) be found?

I've been working with JSLink lately and have come across the GenerateIIDForListItem() method on several occasions. I see why it's being used but does anyone know where I can find documentation for it?...
3
votes
4answers
710 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 ...
2
votes
1answer
43 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
2answers
32 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
1answer
39 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
1answer
115 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
2answers
76 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
20 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
104 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 ...
7
votes
1answer
620 views

When JavaScript runs

Working on an overview of all possibilities of adding JavaScript. Can someone confirm Custom Actions run after JSLinks By execution order: Page Scripts using <script> tags or scriptlink includes....
0
votes
2answers
400 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 ~...
0
votes
1answer
458 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
41 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
61 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
157 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
0answers
34 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
62 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
1answer
35 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 ...
1
vote
1answer
56 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 ~...
4
votes
1answer
434 views

Filter task list and have check box function at the same time

Both parts of my question have been answered other places but it is not clear if the two things I would like can happen simultaneously. I have a standard task list that I wish to filter by a lookup ...
1
vote
0answers
32 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 ...
1
vote
1answer
34 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) ...
2
votes
2answers
1k 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
1answer
694 views

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 ...
0
votes
0answers
22 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
7
votes
7answers
5k views

JSLink (js)file is updated, but still can't see any changes, maybe caching?

I am using SharePoint 2013 online (Office 365). I am following some JSLink tutorial where I am showing indicator icons in columns. It looks like the .js file is working, but when I change the file and ...
0
votes
1answer
98 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
56 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
128 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
26 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
1answer
612 views

JS Link create a Column / read metadata of a document

I'm new to SharePoint and JS Link. I have to read the metadata of a document in a document library. If the document is locked for the current user, I want to create an extra column and display an ...
1
vote
1answer
1k views

Using JSLink to put Description beneath Title in DocLib

I just started using JSLink, and i think it's great! But now i'm facing a problem with the following... I have a DocLib where i want to display the Description field beneath the Title field. This ...
2
votes
3answers
3k views

Display the Actual "Related Item" in a Task List using JSLINK?

How would I go about displaying a link to the actual related item within a task list? Currently, when I display the related item field in the view, all it shows is '1 Related Item'. Is it possible ...

1
2 3 4 5
9