[SP2019] Set list's field JSLink property

Anthony R 1 Reputation point
2022-04-12T15:32:30.977+00:00

Hi,
Is anyone able to set the JSLink property of a list's field in SharePoint 2019 ?
When I'm trying to do so, no exception is thrown but the property isn't updated.
I have a feature receiver doing so that works in SP2013 but not in SP2019.
I also tried with PowerShell, on a totally different SP2019 environment, but the result is the same : no error but property is not updated.
Thanks.

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CaseyYang-MSFT 10,466 Reputation points
    2022-04-13T09:38:26.647+00:00

    Hi @Anthony R ,

    You have to build SharePoint Framework extensions instead of JSlink. Within the "modern" UI of SharePoint Server 2019 most of those customizations are no longer available. SharePoint Framework extensions enable you to provide similar functionality in the "modern" UI.

    1.Create a new SharePoint Framework solution
    2.Define the new Field Customizer with JavaScript
    3.Test the solution in debug mode
    4.Define the new Field Customizer with TypeScript
    5.Package and host the solution
    6.Bundle, package and deploy the solution
    7.Install and run the solution

    For Reference: Migrating from JSLink to SharePoint Framework extensions


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.