How to know if it submitting first time - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » How to know if it submitting first time How to know if it submitting first time Last post 07-08-2005 12:38 PM by Patrick Halstead. 2 replies. Page 1 of 1 (3 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 07-08-2005 07:05 AM terry17 Joined on 07-08-2005 Posts 4 How to know if it submitting first time Reply Contact Hi,I have a form for which on a submit i am saving it to the sharepoint libaray with the form Name (field). I did enable to the formName can be overwritten if already existing... is there a way to know if i am submitting the form for the first time or opening an existing form in the sharepoint library and making changes and resubmitting.....I dont want a new form with the same name to overwrite an existing form in the sharepoint library but i do want to be able to make changes to the existing form in the sharepoint library and resubmit it.thanks in advance 07-08-2005 12:37 PM In reply to Greg Collins Joined on 08-07-2006 Posts 2,126 Re: How to know if it submitting first time Mark as Not AnswerMark as Answer... Reply Contact You can check XDocument.IsNew == true, or you can see if XDocument.URI has the same base address (i.e. your SP site) as thisXDocument.Solution.URI (the location of the form template the form was started from)Greg Collins [InfoPath MVP]InfoPath Dev Please Visit:BraintroveGreg's Paintings 07-08-2005 12:38 PM In reply to Patrick Halstead Joined on 08-07-2006 Posts 5,112 Re: How to know if it submitting first time Mark as Not AnswerMark as Answer... Reply Contact For multiple submits before closing the form, set a variable OnLoad based on Greg's condition above and use that.Patrick Halstead [InfoPath MVP]InfoPathDev Patrick HalsteadProject Manager at Qdabra Page 1 of 1 (3 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.