The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: How to create custom button in SharePoint 2010 Edit form Ribbon User Interface
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Jamal McCoyPosted Jan 29, 2011, 11:52 AM
Hello Vijai, is the solution deployment level affecting this functionality? I am using this example code which is very similar to yours but deployed in farm level and using a custom list definition (with id 10001 for this example) <CustomAction Id="DocumentExchange" Location="CommandUI.Ribbon.EditForm" Title="element title" RegistrationType="List" RegistrationId="10001"> <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.DocLibListForm.Edit.Actions.Controls._children"> <Button Id="ExchangeDocumentButton" Sequence="1" Command="ExchangeDocument" LabelText="label text" Image32by32="/_layouts/images/myIcon.png" TemplateAlias="o2" /> </CommandUIDefinition> </CommandUIDefinitions> <CommandUIHandlers> <CommandUIHandler Command="ExchangeDocument" CommandAction="javascript:alert('Alert message');" /> </CommandUIHandlers> </CommandUIExtension> </CustomAction> Thank you very much in advance!
Deepak PatelPosted Dec 13, 2010, 6:22 PM
HNNKL