Hi Neil,
To achieve this you would have to write code. There is, however, another way to go about it which is by using Qdabra's qRules. qRules is a common library that handles the top 50 commonly asked for features in InfoPath that require code, including your request. Here's the info on SetSave:
SetSave
SetSave gives the form designer access to a variety of previously code-only save options, such as dynamically allowing save, or setting the save location.
Arguments: All arguments are optional, but the command won’t execute without arguments.
o save: Allow or prevent the Save action (allow | block)
o savemsg: Message to display if Save is blocked (* to clear)
o saveloc: Block Save if location starts with this (* to clear)
o saveas: Allow or prevent the Save As action (allow | block)
o saveasmsg: Message to display if Save As is blocked (* to clear)
o saveasloc: Suggested location in Save As dialog (* to clear)
o saveasfile: Suggested filename in Save As dialog (* to clear)
Example:
o SetSave /save=block /savemsg=Save is disabled /saveas=allow /saveasloc=C:\ /saveasfile=MyForm.xml
This command provides you three alternatives:
1. Block all
2. Allow all
3. Block only locations that begin with the value of parameter /saveloc
SetSave is NOT browser compatible. When injecting your form, you have to select "client only" to have the necessary code injected in your form by the injector.
Please feel free to try out the free trial at www.Qdabra.com and let us know if you need any help.
Regards,
Mo