Hi!
Yesterday i was adding a new script file into a NewForm.aspx file.
I had a problem with this because when i added the <script> tag with the file reference src=”” it doesn’t works.
I found that i have to put that in a content but i want to do it adding the tag in the NewForm.aspx. Can i do it?
I don’t want do it writting the JavaScript code into NewForm.aspx, want to add the Scrpt REFERENCE.
Can you tell me about this?
Thanks for your reply!
I’m working in SP2010. The Script is in Style Library. I have to import that script in my NewForm.aspx.
I didn’t understand this step:
- Under Miscellaneous add your file to the jslink: ~site/SiteAssets/JSFiles/foo.js (note if you need to include multiple files you can do it this way: ~site/SiteAssets/JSFiles/foo1.js|~site/SiteAssets/JSFiles/foo2.js
I know that i have to add the file reference (with its respective link) in the NewForm.aspx, but when i did it, it not works.