Tuesday, June 29, 2010

Validation prevents SharePoint publishing check-in

The following error appears on check-in:
"This page contains content or formatting that is not valid. You can find more information in the affected sections."
As pointed out by one of the replies here, use Validation Groups. And hide the validation controls in display mode. To check if it's in display mode, see if:
SPContext.Current.FormContext.FormMode == SPControlMode.Display

No comments:

Post a Comment