I have a custom ribbon button in my app where I am trying to add logic to enable/disable the button based on whether or not the selected items are records. I am able to get the EnabledScript attribute to work, but I want to be able to debug the code I am running in it. I have tried to add a reference to a script file from my app like below

  <CustomAction Id="CustomAction.Scripts"

However this is giving me the following error:

The 'Location' attribute is invalid - The value 'ScriptLink' is invalid according to its datatype

The MSDN documentation is telling me that location has to be set to ScriptLink for ScriptSrc to be applicable CustomAction Element

Am I missing a step or can I not reference a script in a provider hosted app?

  • SharePoint online or on premise? – jobin Apr 14 '15 at 17:27
  • Its sharepoint premise – Alexander Burke Apr 14 '15 at 17:30
  • 2
    I have the same sht... I am tired of sharepoint... Havent seen such inconsistent system for long time – Michal Hainc Aug 2 '17 at 20:25

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.