Hi JWebster1979,
You'd have to write code to do this. After 7 years of providing answers for code and other things, we simplified our response and provide a free trial of qRules for people. 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 try the free trial. Should be easy to setup but SetSave won't work for browser forms. Let us know if you need help.
Best regards,