How to add a jslink in Calendar list new item add form using Schema.xml

I'm Try this code:

<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" UseLegacyForm="FALSE" JSLink="~site/DemoBranding/ProviderHostedjavascript.js" />
  • Is your JavaScript link is correct? Please try to open that javascript in browser with proper url. – Dikesh Gandhi Dec 27 '16 at 9:53
  • yes my javascript link is correct but I am using in sharepoint App list – Sunil Chauhan Dec 27 '16 at 10:04
  • Try to check it by calling alert('hi'); in the JavaScript file. – Dikesh Gandhi Dec 27 '16 at 10:27
  • js file attach is doesn't attach in Calendar list. – Sunil Chauhan Dec 27 '16 at 10:34
  • Are you implementing a code. – Sunil Chauhan Dec 27 '16 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.