Asked by:
replace new record button with custom button CRM 2011

Question
-
Hi again,
I want replace "New record" button with custom New record button for subgrid contact entity and pass parameters to the new record form. For buttons adding I'm using Workbench . Is there any "step-by-step" tutorial how to do this ?
- Edited by rogus1 Thursday, January 23, 2014 10:19 PM
Thursday, January 23, 2014 10:18 PM
All replies
-
Hi,
You can right click on the button and use 'Customise Command' - and then remove the standard action and replace with your own custom javascript action.
Hope this helps,
Scott
Scott Durow
Blog www.develop1.netFollow Me
Rockstar365
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"- Proposed as answer by Scott Durow (MVP)MVP, Editor Thursday, January 23, 2014 11:10 PM
Thursday, January 23, 2014 11:10 PMAnswerer -
And how to pass a specific lookup value to the new form ?Thursday, January 23, 2014 11:14 PM
-
You would have to use the Xrm Client API to get the values from the current form context and then pass the values as described in http://msdn.microsoft.com/en-us/library/gg334375.aspx
Hope this helps,
Scott
Scott Durow
Blog www.develop1.netFollow Me
Rockstar365
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"- Proposed as answer by Scott Durow (MVP)MVP, Editor Thursday, January 23, 2014 11:18 PM
Thursday, January 23, 2014 11:18 PMAnswerer -
ok, I did it, but new window opens with another language. Why ?
UPDATE:
..because I didn't include organization name in url.
- Edited by rogus1 Friday, January 24, 2014 12:30 AM
Thursday, January 23, 2014 11:56 PM -
One more question...
I have no idea how to hide standard 'New Contact' button for SubGrid only on my custom entity form with Workbench.
Can somebody help me with this ?
Friday, January 24, 2014 12:07 PM