Share via


The form cannot be submitted because it contains validation error

Introduction

The form cannot be submitted because it contains validation error:

http://1.bp.blogspot.com/-yxh-Kr_Ea_I/UzudAJD3xiI/AAAAAAAABuk/CxJTI0Zorjw/s1600/download.jpg

When I am working on InfoPath forms that is downloaded from Google. Uploaded in My test site and tried to open the Form. It welcomes with error” The form cannot be submitted because it contains validation error. Errors are marked with either a red asterisk (required filed) or a red, dashed border (invalid values)”

Solution

1. Ensure that the InfoPath feature enabled in list

  1. Open the list in InfoPath via list tab > customize form

  2. It will open up newform.aspx in InfoPath

  3. Once it is open check mandatory fields available in that form.

  4. Make sure all mandatory fields are available and deployed in newform.aspx

  5. If you don’t want them to be displayed in newform.aspx just remove mandatory option

  6. Republish the form and check behavior

If the above does not resolves the issue then it was a hidden field with an invalid value which caused the problem

Note

I resolved the issue by above Method. If you find a different solution, please report it as a comment to this post. This will be useful to SharePoint Community. Be sure to double-verify it: undo your solution and verify that the problem comes back, then redo it and verify that the problem goes away.

See Also

  1. SharePoint Resources on the TechNet Wiki
  2. SharePoint 2013 Portal
  3. SharePoint 2013 - Service Applications
  4. SharePoint 2013 - Resources for Developers
  5. SharePoint 2013 - Resources for IT Pros