.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Adding Custom Actions to Ribbon UI in InfoPath forms

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :SharePoint
Hi experts, - I have a custom List in my site. - I have modified the default SharePoint List forms (DispForm.aspx, EditForm.aspx and NewForm.aspx) using InfoPath 2010, changes being related to the layout of input controls. - Then I wish to add a custom action (a print button - for printing based on modified layout) in the Ribbon Control of these InfoPath modified forms (i.e. displayifs.aspx, editifs.aspx, newifs.aspx). - I am doing the following http://www.endusersharepoint.com/2010/02/19/adding-custom-actions-to-the-ribbon-ui-in-sharepoint-2010-using-sharepoint-designer-2010/ but i guess, it only forms for the SharePoint List forms and not the Infopath modified forms. Any suggestions on how to add a custom action of 'Print' on the Ribbon UI of the list forms. Is there any other better approach? Kindly advise. -Pallz.

View Complete Post

More Related Resource Links

Adding custom help to browser based Infopath forms


We are developing a browser-based application with Infopath 2010 forms.  We would like to provide buttons that pop up a separate browser window containing an HTML help page, which would be stored in a SharePoint Wiki.  I understand it is not possible to call JavaScript from a browser form, which was the initial thought. 

What other approaches are there for providing custom help in Infopath?

InfoPath forms and custom Ribbon



I would customize the ribbion from the "new item" and "edit item"-form of my custom list. It works when I create new "custom Actions" via the SharePoint Designer. The ribbon location is by default "Ribbon.ListForm.Edit.Commit.Controls._children" so far so good.

I have by default the "NewForm.aspx", "EditForm.aspx" and "DeleteForm.aspx" files. Now i customized the forms in InfoPath to have a better look and created some rules and so on. After publish, "newifs.aspx", "editifs.aspx", "deleteifs.aspx" were create and I deleted the old (NewFrom etc).

But now the ribbon location is changed to "Ribbon.Tabs.InfoPathListDisplayTab.*" (seen in Browser by FireBug). I tryed to switch the ribbion location in the custom action via SP Designer to "Ribbon.Tabs.InfoPathListDisplayTab.Commit.Controls._children" without success. 

Know anybody where the definition "Ribbon.Tabs.InfoPathListDisplayTab" comes from? In CMDUI.xml she isn't..

And how can I append custom actions in the ribbon to published infoPath forms?

Thanks edel


InfoPath: Turn User Input into XML with Custom Forms Using Office InfoPath 2003


Office InfoPath 2003 is a new Microsoft Office product that lets you design your own data collection forms that, when submitted, turn the user-entered data into XML for any XML-supporting process to use. With an InfoPath solution in place, you can convert all those commonly used paper forms into Microsoft Office-based forms and end the cycle of handwriting and reentering data into your systems. Today organizations are beginning to realize the value of the mountains of data they collect every day, how hard it is to access it, and are striving to mine it effectively. InfoPath will aid in the design of effective data collection systems. Here the author shows you how to get started.

Aaron Skonnard

MSDN Magazine September 2003

Custom actions and URL tokens when working with the Ribbon

I'm trying to add a new item to the Ribbon using a custom action in a VS SP2010 project. The new action shows up where we want it but the problem we are facing is that tokens like {ItemId} or {SelectedItemId} are not parsed when used in the CommandAction attribute. I would like to use these tokens and construct a URL pointing to an application page we've created. In the same way one can do using UrlAction when adding custom actions to the ECB menu (this is working fine in our project). The custom action below simply prints out different tokens. When run it seems like the tokens {SiteUrl},{SelectedListId} and {SelectedItemId}are parsed but for me both SelectedListId and SelectedItemId are null. Are there any other tokens that can be user or is there a better way to get hold of the item and list for the context? <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="{1f2da003-2069-4d4a-8fc5-1deeb98ecdda}" Location="CommandUI.Ribbon" Sequence="20"> <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.ListForm.Display.Manage.Controls._children"> <Button Id="{ca157255-5ef3-4f1c-bcb6-6ff5ff7610fe}" Command="{7887e42e-

Custom List with Infopath Forms

Hi, In a Site Definition I would like to include a few List Definitions.For these lists I would like to replace the standard NewForm.aspx, DispForm.aspx etc. with Infopath forms.Can you guide me to some walkthrough or some example sources?Thank you,JC

InfoPath Forms : Adding rows dynamically from a SQL table along with a 'Delete' button per row


My requirement is something like this:

In a Task Approval form, I want to have a view which shows all the rows in a particular SQL table (in a infopath repeating table?). Along with each row, there should also be a button, on clicking which the row should disappear from the infopath view table. Do you think InfoPath can handle all this? :) 

To summarize:

1. How do I add rows to a table dynamically?

2. Per row, how do I create a button dynamically?

3. How do I remove the row from the view when the button is clicked?

Adding infopath forms to a web page - is this possible??



I have a  non-SharePoint public web site on which I want to add links that when clicked on, will open up into an InfoPath form, where the user will fill out the form and submit, via email to a SharePoint forms library or list.

In trying to accomplish this (hoping that this is possible), I've extended a SharePoint 2010 web application for anonymous access so that public users can access the web app without having to log on.  The secure part of the web app is not available for public viewing, and the extended anonymous part, will only be available to the public. 

Once the user clicks on the link to the form, I want the following to happen:

1) I want these forms to have a url that can be clicked on from the non-SharePoint public web site.

2) I want these forms to open in a new browser web page, without any SharePoint links or buttons - just the form, itself, with little or no SharePoint, so that the user doesn't know it's being hosted in a SharePoint site.


Can anyone please help me on how to accomplish this??



Adding Dynamic Maps to Contact Forms with REST Web Services in InfoPath 2010

Learn to use the REST Web service data connection feature in InfoPath 2010 to add a dynamic map to a list form for contacts in SharePoint Server 2010.

Sample: Adding Dynamic Maps to Contact Forms with REST Web Services in InfoPath 2010

Explore the code as you learn to Use the REST Web service data connection feature in InfoPath 2010 to add a dynamic map to a list form for contacts in SharePoint Server 2010.

Sample: Adding Dynamic Maps to Contact Forms with REST Web Services in InfoPath 2010

Explore the code as you learn to Use the REST Web service data connection feature in InfoPath 2010 to add a dynamic map to a list form for contacts in SharePoint Server 2010.

How do I get an InfoPath form to use the Ribbon on a custom application page?


I'd like to display an InfoPath form in a custom aspx page using the XmlFormView control.  When I do, the Submit/Close options show up in the old style blue toolbar instead of the v4 ribbon - even though there is a ribbon at the top of the page.  Is there something I need to add to my aspx page to get the form to use the ribbon instead? 

The custom aspx page is deployed in _layouts\subfolder directory and it uses the site's default master page. The InfoPath form is deployed as a site content type.

I don't think it's a problem with the master page or the InfoPath form itself because if I display the form using the Form View web part the actions show up in the ribbon. 

How can I use the ribbon when using the XmlFormView?



Adding custom dialogue to the msi installer



I am creating setup project using visual studio 2005 . I wanted to add new custom form or dialogue box to the setup. When i run install the form must be added after welcome screen. Kindly guide me .


Santosh Patil

Smart Tags: Simplify UI Development with Custom Designer Actions in Visual Studio


Windows Forms 2.0 components expose smart tags by utilizing Designer Actions. By taking advantage of this feature, you can add smart tags to your own custom components to make setting their properties and other actions much easier and developer-friendly.

Michael Weinhardt

MSDN Magazine July 2005

.NET Internals: Tailor Your Application by Building a Custom Forms Designer with .NET


The design-time architecture of Windows Forms in the .NET Framework has made development much more flexible than it had been with MFC. With Windows Forms, you can drag one of your custom controls from the toolbox and drop it onto the Visual Studio design surface and even though Windows Forms knows nothing about the control, it's able to host it and let you manipulate its properties-not possible in MFC. In this article, the author discusses what's going on under the covers as you design your forms and then walks through the creation of a bare-bones forms designer.

Sayed Y. Hashimi

MSDN Magazine December 2004

Proper setup using Infopath and Custom Workflow using VS 2008



I have been struggling for a couple of days, trying to set up a decent
structure for an Infopath project using a custom workflow using Visual Studio 2008.

I had a solution with two projects:

1) Sharepoint 2007 Workflow

2) Infopath 2007 form w/code-behind.

I included the xsn, in the VS solution, but after a day or two,
something went wrong, and I lost some work. I still do not know what
happened, but I could not get my changes to persist afterthat  Doing research I have read that this
stucture, using Infopath xsn, within VS does not work correctly with Source
Control. I am using VSS.

So I since made a change to the set-up so that the .xsn (form template) is separate from
Visual Studio. However, I need to leave the code-behind in VS, since I need to debug

This is my latest problem. I have been unable to attach to the correct
process, as VS generates cachse files, and who knows what else.

My question is simple. What is the supported method for debugging InfoPath
code/behind, which uses a Sharepiont Workflow?

I just also want to say that one should not have
to spend a few days just trying to setup a working development environment.

This should be trouble-free, but it is far from being so. I

MOSS 2007 : I am looking for tutorial about how tu use infopath 2007 forms and to associate to them



I am quite new on sharepoint 2007,

i am at the moment looking for tutorial to help to understand better the concept of workflow you can associate with infopath 2007.

I would like to create a  form that the visitor of the website can fill and then submit.

once the form submitted i would like tto be able to store all the date picked up to the database sqlserver 2005 and then to be able to send a email to the administator to be kept inform  of that.

the 2 tutorial i found that i found interested are http://weblog.vb-tech.com/nick/archive/2007/02/25/2207.aspx and the microsoft one o.n the virtual lab.

So what i am looking for is any tutorial which can help me to be understand very well how to use the worklow with infopath or if you have as well some book to advice me for that i would be happy.


Overwriting Existing InfoPath 2003 Forms



I'm having a big problem in my Sharepoint Environment.

So far I've created a form in InfoPath 2003 and successfully published it to a Form Library. It's also submitting correctly (at least at first).

Now after I added a couple forms, let's say three forms with unique file names, and then I open the second one, make a change and submit it again, it disappears from the "All Items" list. I can still see it sitting in the "Explorer View", but it's missing in the other. Now when I try to "Fill out a new Form", it either won't show up in the list or it will show up but with the column fields that have been populated previously.

We're using WSS 2.0 and InfoPath 2003.

I used this guide to create the unique filenames: http://www.codeproject.com/KB/sharepoint/SharePointSubmitInfoPath.aspx

In my view, the issue lies in trying to overwrite existing files and not appearing in the list.

Any help is much appreciated !!!


Thanks in advance.

Marvin Sugirin

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend