http://www.infopathdev.com/forums/p/14597/51881.aspx
Setting the “submit” location for InfoPath forms is easy enough. But unless we disable the “save” button, users can save the form as well. And being able to save a form before it is submitted is a good idea.
Unfortunately, the default save location is where the form is opened from. But we can alter this location in the javascript that launches the form.
You need to create some custom links that launch forms. These links call the createNewDocumentWithRedirect function. This function is called by SharePoint itself when you click the “New” button. I’ve abstracted the function so that it can be used on any site and only need to pass in the relative site path and InfoPath template we’re calling. This code can go into a content editor webpart.
Of particular interest below is the strSaveLocation variable. Setting this to ‘C:\\Documents and Settings\\All Users \\Desktop’ will save the form on the users desktop rather than the form library, but will still allow it to be submitted to the form library.
The site parameter is the relative url of the site, e.g. sites/mmr. The template parameter is the name that the form is published under. In the below case it is the Breaches and Incidents Notices form.
<script>
function newForm(site, template){
var url = 'http://' + window.location.hostname + '/' + site + '/';
var template = url + template + '/Forms/template.xsn';
var saveLocation = 'C:\\Documents and Settings\\All Users\\Desktop';
var progID = 'SharePoint.OpenXmlDocuments.2';
var bXMLForm = true;
var redirectUrl = url + '_layouts/FormServer.aspx?XsnLocation=' + window.location;
var defaultItemOpen = 0;
createNewDocumentWithRedirect(template, saveLocation, progID, bXMLForm, redirectUrl, defaultItemOpen);
}
</script>
<P><A href="#">Please click here to create and submit
a new Breach and Incident Notice.</A>









