locked
Another InfoPath question. Submitting issue RRS feed

  • Question

  • I am still trying to get my InfoPath form working the way we need it. As per a previous post I am using SharePoint 2010 with InfoPath 2010. I have no problems creating the form and had some great advice in a previous reply. I can publish the form to a document library. I was able to then fill the form in and submit it to a 2nd document library.

    My problem is I need to configure it so that in the staff can fill the form in and submit it without it going to the 2nd document library and overwritting the form before them. I need the form submitted by lots of people and the forms showing up individually in the 2nd library like in a list.

    Someone mentioned adding a hidden feild and configuring that to somehow help but I am lost as to how to fix this.

    I hope this makes sense.

    Tuesday, November 13, 2012 7:47 PM

Answers

  • I solved my issue. It is now working properly. I added the function of date and time. :-) Now I just need to figure out if/how I can extract the data lol
    • Marked as answer by Mancunian12 Wednesday, November 14, 2012 9:06 PM
    Wednesday, November 14, 2012 9:06 PM

All replies

  • Hi,

    I understand that you want to submit to a form library and overwrite the form before them. Do you mean that you want to overwrite the forms submitted by the same user before? And then store all the forms submitted by the all the users separately in the library ?

    If so, you can design a form in this way:

    1. Create a form template in InfoPath designer.
    2. Add a submit data connection to submit to library2. Specify a name for the form(with userName() function in the name so that every users can submit a form with unique name).Check allow overwrite if file exists.
    3. Add a submit button on the form to submit using the data connection created above.
    4. Then publish the form to a form library.
    5. When you click add a form in the form library, you will get a form open in browser and the URL is like : http://ming/_layouts/FormServer.aspx?XsnLocation=http://ming/Test%20Form/Forms/template.xsn&SaveLocation=http%3A%2F%2Fming%2FTest%20Form&Source=http%3A%2F%2Fming%2FTest%2520Form%2FForms%2FAkk%2Easpx&DefaultItemOpen=1.
    6. The url behind source query string is the page to redirect after submitting. You can add a link with the source you want to go to on the form library’s view. So that when the user clicks the link to create a new form, it will submit to form library2 and redirect to the page you want.

    Thanks,

    Entan Ming


    Entan Ming

    TechNet Community Support

    Wednesday, November 14, 2012 10:33 AM
  • Hi Entan,

    Thank you very much for your detailed reply. I might not have been as clear as I should have but I need  a form posted on our Intranet so that staff can fill it in. After it is filled in it gets submitted/sent to a different document library. So each staff members form will be listed and not just the one form that is overwritten each time. I will try your instructions but I am not sure how to do the part below

    "Specify a name for the form(with userName() function in the name so that every users can submit a form with unique name)"

    Thank you again.

    Wednesday, November 14, 2012 6:26 PM
  • I think that what Wicran is saying is that in the submit options you want to create a unique form name.  In theory you dont necessarily need to specify userName() in the form name on submit because you will already have the "Created By" column. 

    Nevertheless, here are instructions for creating a unique form name:  http://www.codeproject.com/Articles/37093/Submitting-an-InfoPath-Form-to-SharePoint-with-a-U

    And i agree with Wicran about using &DefaultItemOpen=1 appended to the form library URL to open the form via URL rather than going directly into the library and clicking new.

    Wednesday, November 14, 2012 9:04 PM
  • I solved my issue. It is now working properly. I added the function of date and time. :-) Now I just need to figure out if/how I can extract the data lol
    • Marked as answer by Mancunian12 Wednesday, November 14, 2012 9:06 PM
    Wednesday, November 14, 2012 9:06 PM