Multiple InfoPath forms inside one InfoPath form...Possible? - InfoPath Dev
in

InfoPath Dev

Multiple InfoPath forms inside one InfoPath form...Possible?

Last post 12-17-2012 09:27 PM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-14-2012 11:38 AM

    Multiple InfoPath forms inside one InfoPath form...Possible?

    I have a web based form with around 80 views (a really long survey).  I've been asked if it is possible to have the entire form filled out multiple times and saved in the same xml file. 

     Example:  A user fills out the form and arrives at the last view(page).  On the last view there is supposed to be an area that asks "Would you like to fill out the survey again?"   When they click "Yes", it takes them back to the beginning of the form where they can fill out the questions all over again.  This may happen up to 10 times!  Everything needs to be saved in only one xml file.  My problem/thinking is that once the form is filled out the first time, the fields are already filled in......I would have to make an whole new set of identical views, but with new fields.  If I had to create 80 views for each survey filled out, I would need 800 views if it was filled out 10 times!  Also, there is going to be some SSRS and figuring out how to get these fields into it could be an interesting challenge. 

     Any ideas?

     Thanks

  • 12-17-2012 09:27 PM In reply to

    Re: Multiple InfoPath forms inside one InfoPath form...Possible?

    The best way I can picture doing this is to put the entire main data source in a repeating group, and have a non-repeating field outside of the group with a name like CurrentRow.  Then you would also put all of your views inside repeating sections that are filtered to only show the row that corresponds to CurrentRow.

    Then at the end of the survey, when it asks them to fill the survey out again, if they picked yes, it would increment CurrentRow and take them back to the starting view.

    Now as far as populating the big outer group with enough rows, there are two approaches there.  You could either use the Default Values dialog to pre-populate the form with 10 copies of the group, which has the downside of potentially using more space than you need.  The option would be use code, or a code-based tool like qRules, to add an extra row only when someone clicks Yes at the end.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.