답변됨 Infopath 2010 viewer webpart and custom form

  • Sunday, June 03, 2012 11:54 AM
     
     

    Hi,

    I want to use the infopath viewer webpart, but to show a custom Infopath 2010 form (which would have C# in code-behind). Is this possible? As the webpart doesn't seem to have an option to show a custom form.

All Replies

  • Sunday, June 03, 2012 6:37 PM
     
     Answered

    Hi,

    What do you mean by:

    As the webpart doesn't seem to have an option to show a custom form.

    The IP webpart will let you choose forms and CT's from form librarys from whithin the site you are adding the web part. If there is any difference if the form has code behind, I find hard to belive.

    So my answer would be, yes it's possible.


    Blog: Married to SharePoint Twitter: @SPNiax

  • Monday, June 04, 2012 12:00 AM
     
     

    Hi,

    I mean the path to a custom Infopath 2010 form.

    However, I have found a way to do what I needed. I needed a form for submission with a button, and I got this done (Via tweaking in Infopath) and added.

    There are two things I have not mastered:

    Is it possible to have a list of forms for a new item and then the ability to select which to use when adding a new list item?
    Can I show a form in the infopath webpart that just shows all the items in a list?

  • Monday, June 04, 2012 7:42 AM
     
     Answered

    Hi,

    Yes and yes.

    You could add links to your different forms either in a links list or as HREFs in a form web part. Here is an example >>

    You could create a IP form that lists all items from a list (it will show the default view of the list) and then add that form to the IP web part. But it feels like crossing the bridge to get some water, why not just add the SP list it self to the page?


    Blog: Married to SharePoint Twitter: @SPNiax