Page 1 of 1
How to include a java script in a form
Posted: 19 Sep 2013
by MES5464
I want to use the Date.js script in my forms. How do I reference it?
I don't think using this in the javascript panel is right: <script src="date.js"></script>
Re: How to include a java script in a form
Posted: 19 Sep 2013
by MES5464
I acomplished this by adding an HTML control to the form and added the <script> tag to the date.js.
It works, but is this the best way to do this?
Re: How to include a java script in a form
Posted: 21 Sep 2013
by Dmitry Kozlov
Sure, you can include script with HTML-control, but if this script is used in multiple forms it will be better to include it in the master-page.
Re: How to include a java script in a form
Posted: 23 Sep 2013
by MES5464
In my "Master Pages" in SharePoint Designer I have the following:
AdvancedSearchLayout.aspx
DefaultLayout.aspx
minimal.master
NewsHomeLayout.aspx
oslo.master
PeopleSearchResults.aspx
ReportCenterLayout.aspx
SearchMain.aspx
SearchResults.aspx
seattle.master
TabViewPageLayout.aspx
v4.master
welcomelayout2.aspx
My guess is I should put the <script> tag in either the:
DefaultLayout.aspx
oslo.master
seattle.master
In which file should I put the script tag?
Re: How to include a java script in a form
Posted: 24 Sep 2013
by Dmitry Kozlov
Your current master-page is seattle.master