Conditionally Enable or Disable a Button/Command in your SharePoint 2010 custom Ribbon group
Read OriginalThis article explains how to conditionally enable or disable a custom button in a SharePoint 2010 Ribbon group. It focuses on using the EnabledScript property in the CommandUIHandler XML to run a JavaScript validation script. The example uses SP.ListOperation.Selection.getSelectedItems().length to enable the button only when exactly one list item is selected. The post includes code snippets, screenshots, and a brief summary for developers working with SharePoint Ribbon customization.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
No top articles yet