SharePoint Dragons

Nikander & Margriet on SharePoint

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: