SharePoint Dragons

Nikander & Margriet on SharePoint

Tag Archives: ECB

ECB action depending on column value

You’ve probably been in a situation where you wanted to display a custom action based on a specific field value? If you’re in luck, you can keep things simple by creating a dedicated content type: http://www.csharpest.net/?p=95. Otherwise, you can go for an approach where you’re leveraging the client object model and jQuery: http://pholpar.wordpress.com/2011/07/24/hiding-ecb-custom-actions-based-on-specific-list-properties-using-the-client-object-model/. The latest solution being the best solution as we’re concerned.

Advertisements