Mr. Lou Sanderson

I'm creating a browser-enabled form in InfoPath 2007, for use in a forms library on MOSS. I do not want the users to be able to save the form (only submit). I removed the save & save as icons on the toolbar. I left the close icon on the toolbar. When the close icon is clicked, infopath forms services asks if you want to save the form. Is there a way to tell infopath forms services to stop prompting users to save the form

An easy solution would be to remove the close icon from the toolbar, but then I have to invent a way to get back to the forms library from an open browser-enabled form.

So, any suggestions on how to either stop the save prompt, or to create a way to exit the form and return to the forms library

Thanks,

Lou Sanderson



Re: SharePoint - InfoPath Forms Services unenabling save functionality on browser-enabled forms

Mart1n0

Hi,

you can try to create a button with rules, one rule for submitting data and another rule for closing the form

Hope this helps

Mart1n0






Re: SharePoint - InfoPath Forms Services unenabling save functionality on browser-enabled forms

Stefan79

Hey Lou;

Did you have any luck with this I'm experiencing the exact same problem. Basically Im making a registration form and I dont want people to re-register with the same form to same library, trying to force them to go back to the library to launch a new form.

I can easily create a button to close the form without the save prompt, but still unable to remove the big red x!





Re: SharePoint - InfoPath Forms Services unenabling save functionality on browser-enabled forms

Osama Naem

Hi Lou

you can do this by the following steps

1- add new data connection to submit data --> to document library on a sharepoint site

2- give the document library you want to submit your form to

3- in the file name use the "concat" function like this : concat("Request "; now())

to make the file name uniqe

4- in the infopath form -> tools -> form options -> browser category remove the check boxes for top and bottom toolbar

5-- Now Add button and in its ruls add action to submit using the data connection you just created and second action to close the form

I use this way and it is successful with me






Re: SharePoint - InfoPath Forms Services unenabling save functionality on browser-enabled forms

Mr. Lou Sanderson

Mart1n0,

The submit button I can handle, could you (or anyone else) help with creating a button that closes the form w/o saving -- i.e. a "cancel" button

Thanks,

Lou





Re: SharePoint - InfoPath Forms Services unenabling save functionality on browser-enabled forms

Stefan79

Sure no Problem;

drag a drop a button from the controls, right click and go to properties. By default the type of action executed is rules and custom code. click the rules option, add a new rule, give it whatever name you want, you won't need a condition because you probably want the actions to exceute everytime they click the button.

Next add an action; there should be one availabe from the list that says "Close Form". Once you selected the option you will have settings below the drop down box, there is only one setting. It's a check box that says "prompt user to save if changes" etc. Uncheck that box. Now when the user clicks this button, the form will close without any prompts.

HOWEVER, this will not change the fact that if the user closes the infopath window/form by file->exit or by clicking the red X the user will receive the prompt to save. My problem is this exactly. I need to disable that prompt to submit the form back to it's initialization location, in my case a sharepoint list. I have found other ways in terms of processes and workflows that will make it ok for the user to do this but I would prefer if they didnt at all. It makes it to easy to overwrite the form found on sharepoint, and the user may not be able to see the end result Tongue Tied.

Any help from anyone would be good, I guess I'm looking for some jscript code that will disable the close/exit action in the windows red x widget

THanks,





Re: SharePoint - InfoPath Forms Services unenabling save functionality on browser-enabled forms

Todd Girvin

I'm having the same issue. I did figure out that if you enable Save in the form options, then disable the Close button, then disable the Save and Save As, it makes the Close button go away. Unfortunately I still want a Cancel button so you can exit without saving.

I classify this problem as a deficiency (read Bug) in InfoPath and Form Server. Why is the Close button checkbox grayed out when Save is disabled And, if Save is disabled but Close is enabled, it definitely SHOULD NOT prompt the user to save the form. Close should act like a cancel, or better yet, Close should be replaced with a Cancel button that returns the user to the form lib. Right