[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.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,273 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,765 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,591 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CaseyYang-MSFT 10,326 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.