1

Newbie question. With Sharepoint Online, on a new List I'm modifying the Default New Form and I've added a Content Editor web part. I've linked the Content Editor to a script file that I've uploaded to the Site Assets folder. The script simply loads jQuery (also uploaded to the Site Assets folder), and logs a message to the console.

The script loads and works fine in the Design (Edit) Mode of the form, but in the actual input mode of the form, the script isn't loaded at all.

<script language="javascript" type="text/javascript" src="https://<mysite>.sharepoint.com/SiteAssets/js/jquery-1.12.0.min.js"></script>
<script language="javascript" type="text/javascript">
    $(document).ready(function() {    
        console.log("script loaded");     
    }    
</script>

Any ideas? Seems like I'm missing something basic.

I also checked this Q&A and made sure to include the language and type params.

0

Nevermind, it was in fact missing type="text/javascript" and works now.

  • 2
    Now mark your it as your own Answer.. so it is no longer listed as question. tnx – Danny '365CSI' Engelman Feb 13 '16 at 10:26

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.