Disable File | Save As

B

boreal

I want to disable the Save As command from the File menu without using the
CommandBars class to disable that command and avoiding unchecking "Save and
Save As" from the Open & Save tab of Form Options.

Basically, I need to allow a user to Save a form the has already been
submitted to a SharePoint library. This is working fine now, but I need to
remove the Save As option so that users do not inadvertantly rename their
forms. Also, I don't want to make this form full trust.

Do I have any save options left? A save button perhaps?
 
B

boreal

That was exactly what I needed - thanks Greg!

One more thing...

I want to replace the InfoPath error message that this solution triggers
("InfoPath cannot save the form. The OnSaveRequest event handler returned a
value indicating that the save failed.") with a message of my own.

I used the Alert method of the UI object to display my custom message, but
InfoPath's default message appears also. Can I remove that InfoPath message?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top