Skip to main content

Solving InfoPath "the form has been closed" on form submit


The Prompt after Submitting the Form instead of redirecting to the form library
I recently encounter this issue after publishing and testing my InfoPath 2010 form published in a SharePoint 2013 site library.

As opposed to my other published forms, this specific form is throwing a prompt that says "the form has been closed" after submitting the form instead of redirecting to the library.

After browsing the internet, I have been to this blog post which mentions about the caused they found out after raising the issue to Microsoft. According to them, the reason might be because of the same IDs of the controls which happens if we are copy pasting controls to the same views or others views.

That is probably true because I have copied a particular view and used it in another view, and when I checked the control ID, it was the same with the control ID from where I copied it.

Although the ID must auto-generate its new unique ID if we copy paste some controls, there are times that it would not and that might trigger this error.

To solve that problem, I have checked my controls and their respective IDs and compare that to all other control IDs in all the views and change the IDs for the controls that has the same IDs, they must be unique to each other.

To check the ID: Click the Control>Properties Tab>Control Properties>General Tab (Alternatively you can also just right-click on the Button Control and select "Button Properies")

Screenshot of the Button Properties which contains it ID

Be sure all the IDs are unique and different from each other. After making sure they are unique, publish your form again and try submitting another form and you will see that the prompt "the form has been closed" is gone and will just redirect to the form library instead.  

Comments