When linking to jsLink file, with console.log - is not loaded. this is the script for example:


I use it on the list view webpart as "jslink" property (I mean the address of it /SiteAssets/specialItemOrder/colorize.js)

Why isn't it loaded?

  • try to reference JSLInk as - ~SiteAssets/specialItemOrder/colorize.js. Refer this - sharepoint.stackexchange.com/questions/203041/… – Rohit Waghela Feb 26 '18 at 15:04
  • Also there is no need to include <script></script> tab in your colorize.js file. Just write console.log and see ... – Rohit Waghela Feb 26 '18 at 15:05
  • 1
    ~SiteAssets is not a valid token. I'd suggest using ~sitecollection, or ~site here. So ~site/SiteAssets/specialItemOrder/colorize.js – Mike Feb 26 '18 at 15:09
  • @Mike Thanks for correcting. You are right ....... – Rohit Waghela Feb 26 '18 at 17:54
  • Use the Chrome Browser Exstension: Cisar, it is a WYSIWIG editor and does all the JSLink management for you – Danny '365CSI' Engelman Feb 27 '18 at 15:02

Your Answer

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

Browse other questions tagged or ask your own question.