CustomJs file in JSlink approch

Forums General discussion CustomJs file in JSlink approch

This topic contains 3 replies, has 2 voices, and was last updated by  Alexander Bautz 3 years, 5 months ago.

  • Author
    Posts
  • #11168

    Navya Marla
    Participant

    i have uploaded my custom js file in SPJS/DFFS/CUSTOM folder.in setup page in customjs tab i gave the file as test.js.but i didnt work.please give sugestion how to add custom js files?

  • #11181

    Alexander Bautz
    Keymaster

    Hi,
    I’m sorry, but I accidentally deleted your attachment when trying to open it – can you please add it again?

    Alexander

  • #11193

    Navya Marla
    Participant

    hi Alex,
    thanks for the reply.I re-attached the Document which contains the screen shots.

    Thanks,
    Navya

    Attachments:
    1. dffs.docx
  • #11197

    Alexander Bautz
    Keymaster

    Thanks, now I see the problem.

    The files added to the “/SPJS/DSSF/Custom” folder must be referred in the JSLink setup page – in the Custom JS and CSS files (not in the Custom JS in DFFS backend):
    IMG

    This method will load the code in all forms using the same setup (if you use a site column).

    To load a custom js file in ONE DFFS form, look at the help icon above the Custom JS textarea for a link to the $.getScript jQuery method.

    Hope this helps,
    Alexander

You must be logged in to reply to this topic.