Question

I've a script referenced in List's view like :

<JSLink>~/retrieveAlarm.js</JSLink>

The first lines of the script show up an syntax error:

$(document).ready(function() {
    ExecuteOrDelayUntilScriptLoaded(getAlarms, "sp.js");
)};

enter image description here

What I've made wrong ?

Thanks.

Was it helpful?

Solution

It seems that you have to add jQuery reference also into the JSLINK.

Your path should be like

<JSLink>Path_To_jQuery|~/retrieveAlarm.js</JSLink>

Other than this, the syntax seems to be fine.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top