Update an existing survey in SharePoint - InfoPath Dev
in

InfoPath Dev

Update an existing survey in SharePoint

Last post 06-06-2009 10:58 AM by warrtalon. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-06-2009 06:45 AM

    Update an existing survey in SharePoint

    When I try to revise a completed survey and use the submit (rules and custom code button) which submits the survey to SharePoint and sends emails, nothing happens.  New surveys work just fine, it's only when you try to revise one.  Do I need to setup something different when someone tries to revise a survey?

    After more testing, I find that is does submit the update to the SharePoint server and creates the emails, however, it creates a new file instead of just changing the version number.

  • 06-06-2009 10:58 AM In reply to

    Re: Update an existing survey in SharePoint

    You have to add conditions to the submit button that check to see if the file has already been submitted.  You do this by adding a "submitted" field to your form that is hidden and is a regular text field.  Add an action to your submit button that sets this field to your pre-formatted, concatenated filename.  Also, add a condition that checks to see if that field is blank.  If it's blank, set that field to your preferred filename, submit to the library, submit to email, then close.  Add an entirely separate rule with a condition to check to see if that field is NOT blank.  if it's NOT blank, then do not set the filename and just submit to library, submit to email, then close.  Lastly, go to your SharePoint Library Submit data connection, and check the box at the end of the wizard that allows overwrite.  This way, new files will show up new in the library, and modification of existing files will overwrite the previous version of that file without any inconsistency.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.