1

I have full control permission levels over my department's SharepPoint 2013 team site.

I have inserted a jquery in a script editor web part located in my list's New Form.

It works perfectly for me but I found out it doesn't work for anybody else. They can view any style changes I have inserted just not the one script. Does anybody know what the cause of this could be?

It is a script that hides/shows form fields based on another field's selection.

8
  • Have you referenced any file in your code from site assets or style library in your site? If Yes, please check it the file is checked in properly. – Ganesh Sanap Mar 7 '20 at 0:26
  • Yes. I have the jquery file in my style library. I took the link directly from the file and used it in my code. – Nicole Mar 7 '20 at 2:02
  • Yes, that's fine. But you need to check-in the file after adding it to style library. Also make sure that other users has permissions to access this file. – Ganesh Sanap Mar 7 '20 at 2:07
  • 1
    I will follow up on this and get back to you Monday to let you know if this solves the issue! I really appreciate your help on this! – Nicole Mar 7 '20 at 3:58
  • 1
    It worked! Turns out I didn't check my jquery file in. Guess I am still a newbie to make such a rookie mistake. Thank you SO much for helping me!!! – Nicole Mar 9 '20 at 20:46
1

If you have referenced any file in your code from site assets or style library in your site then you need to check-in and publish the file after adding it to style library.

Also make sure that other users has permissions to access this file.

1
  • 1
    Agree. A good setup for testing that kind of changes is to log in as a test user with minimum permissions. Often I use a IE10 or IE11 to verify the script as IE often fails where Chrome passes ( ES5 vs ES6 and so in) – Kasper Bo Larsen Mar 7 '20 at 22:35

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.