1

I have a team site and would like to add JavaScript to influence the list's appearance.

I have Custom Scripts enabled, but the "Form Web Parts" Ribbon option is grayed out and the JSLink Property outlined here wasn't in the properties list in SharePoint Designer.

3

JS Link is not supported in modern listviews (which I'm assuming you're using since you tagged your question with sharepoint-online).

The simplest way to customize field appearance is to use Column Formatting. I wrote a webpart to make this even simpler: PnP Column Formatter.

If you want to use JavaScript you'll need to use a SharePoint Framework Field Customizer (SPFx Extension).

There's a helpful guide if you're already familiar with JS Link here: Migrating JSLink customizations to SharePoint Framework Field Customizers

  • I'm new to working on SP, so I do not have past experience with JSLink. Is SPFx the recommended path forward? – vanblart Feb 2 '18 at 16:50
  • 1
    Yes, in fact it's the only way to customize modern pages/sites. Classic pages still require traditional approaches. – theChrisKent Feb 2 '18 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.