Form has been closed

This post is more for my own memory, since I tend to forget how I solved it when I get this message "Form has been closed" when submitting browser forms in InfoPath 🙂

Scenario is the following:
You have a mail view that you wish to mail instead of the default Edit form, so that you can design it better for mail clients and also remove any unrelevant information and buttons etc. So I have two views in my InfoPath form, and my Submit button should change to the Mail view when the form is submitted.
I add a Submit button and some rules. If you add the rules in the wrong order and you submit the form, you will get this message in the browser:

And you are not redirected back into the form library, which is what you want. So in order to get back into the form library after Submit, then add the rules in the following order on your Submit button:

1) Submit to library
2) Switch to your Mail view and Submit to Email
3) Switch back to View1 (default view) and Close form

 

0
0
votes
Rate this article!
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

5 Comments
newest
oldest most voted
Inline Feedbacks
View all comments
infopath curious

Where is the Action "close the form no prompt". I don't have that as a choice

infopath curious

Where is the option to add an action "Close the form no prompt" I don't have that on my list of choices

Lise Rasmussen

You have that option when you add a Button to the form, and set it to use Rules for submit.

chandra

i am not able to see mail view in options?

Anonymous

Thanks so much! Worked like a charm.