Auto-Generating SharePoint Filenames for InfoPath 2010 on Submit
SharePoint 2010 InfoPath - Auto Generating Filename on Submit Button 1. Create a filename field Create a strFilename field (Text). Do not set any conditional formatting, rules, or data validation on this. Add it to the canvas for now and make it read-only (Fig 1). This will be visible for testing purposes only. You can hide this if you need to But I left it on my form as I thought it was useful. (fig1) 2. Create Submit Data Connection Create a SUBMIT data connection in your form template that connects to the Form Library where the form resides. Put in the URL of your Form Library for the “Document Library” field, and choose the strFilename data element for “File name” field by using the fx button. Check the box for “Allow overwrite if file exists” In Infopath 2010 this is done by navigating to the "Data" tab, Clicking on "Data Connections", and clicking "Add" as in (Fig 2). (fig 2) then click next and select to submit yo...