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!!!
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityHave you tried adding SPContext.GetContext(this.Context).FormContext.FormMode = SPControlMode.Display;
inside CreateChildControls(){ }
?
Try this.
<PageFieldAverageRatingFieldControl:AverageRatingFieldControl FieldName="5a14d1ab-1513-48c7-97b3-657a5ba6c742" runat="server" ControlMode="Edit">
</PageFieldAverageRatingFieldControl:AverageRatingFieldControl>