in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

sharepointstuff's blog

InfoPath Submit Button: File Naming Convention

I added a Submit button at the bottom of my InfoPath form.  InfoPath allows rules, so I used the following rules: “Submit using data a connection” and “Close this form: No Prompt.”

Using the “Submit using data a connection” I added this formula - concat(RequestBy, "_", Project, "_", today()) - to create a custom naming convention for my form to distinguish the forms in a list. Sample: Brian Carlson_Project_2004-23-2003.xml.  Then I used “Close this form: No Prompt.” to close the form after the Submit button has been pressed.

NOTE: RequestedBy and Project are fields I added to the form.  You can use what ever fields make sense for the naming convention for your form.

 ~Brian

Comments

 

David said:

I have tried this and it works very well, but it will not let me save the completed form, even though it had created a unique file name as per your instructions. It said that:

InfoPath cannot submit the form.

An error occurred while the form was being submitted.

The form cannot be submitted to the following location:

The folder does not exist.

Do you have any idea how I can solve this?

October 9, 2007 6:41 AM
 

litzitan said:

Same experience with david. i have finished the form and already posted it in sharepoint site however, if i have completed the form it doesnt allow me to submit it: the error message are as follows:

InfoPath cannot submit the form.

An error occurred while the form was being submitted.

The form cannot be submitted to the following location:

The folder does not exist.

June 16, 2008 2:58 AM

Leave a Comment

(required )  
(optional )
(required )  
Add

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts