I am facing strange issue in SharePoint Infopath Ribbons. I have created Infopath Ribbons using the custom action for Ribbons. Ribbons are coming properly in Infopath Browser Forms. But when i specify "RegisterationId" and
Registeration Type so that i can register them only for single content type. This binding is not working and ribbons are not showing in specified content type. To make sure i am having correct ID for content type I have used
same registration type and "RegisterationId" for others ribbons locations(for E.g. Document.Manage.Controls._Children) its working fine in that case. So there is no issue in Content type ID.
Has anyone faced similar issue. Can we not specify the infopath ribbons for specific content type??
Sample Code for Ribbons
<CustomAction Id="IFCustomRibbon" Location="CommandUI.Ribbon" RegistrationId="0x01010100B37C9B1EEBE29D458A2011EC60DDF544" RegistrationType="ContentType">
Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png" Image16by16Top="-48" Image16by16Left="-48"
Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-96"
if(confirm('asdad enter This will complete the form and send notification to interested party'))
var obj = document.getElementById('FormControl_V1_I1_B3');
if(obj != null)
//var $command = $get('FormControl_V1_I1_B3');
The Location and Button id are similar in your code. Please try to give different id value.
You can refer to the following link.
- Edited by Jack-GaoMicrosoft contingent staff, Moderator Monday, April 16, 2012 2:50 AM
Having the same issue at the moment... how did you solve it?
I'm not sure... but in my opinion the RegistrationId and RegistrationType in the CustomAction-Tag are only working when you want to modify the normal Sharepoint Ribbon and not the InfoPath-Form-Ribbon...
Anyone has any clue for this?? Please let me know we have been struggling since last two weeks to achieve this.
I have the same problem , if I not set the "RegisterationId" attribute, the custom action will add to all infopath form, if I set the attribute, the custom action will remove from all infopath form.
I will try other way , like jquery, $("#custiom action group id").hide() to remove custom action for special infopath form when form loaded.
- Edited by ChenYuMing Monday, December 03, 2012 3:59 AM