0

I created a Display Form on a Custom List that have a rating column, but when I open this form with a user that is a non administrator, this error is show:

"The controlmode control form has not been set"

Someone can help me?

Thanks!!!

2 Answers 2

1

Have you tried adding SPContext.GetContext(this.Context).FormContext.FormMode = SPControlMode.Display; inside CreateChildControls(){ }?

1
  • I created my Form on SharePoint Designer, I have no code behind to edit. Another idea? May 30, 2013 at 5:36
1

Try this.

<PageFieldAverageRatingFieldControl:AverageRatingFieldControl FieldName="5a14d1ab-1513-48c7-97b3-657a5ba6c742" runat="server" ControlMode="Edit">
                                    </PageFieldAverageRatingFieldControl:AverageRatingFieldControl>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.