0

How can I show Read Only fields in edit form through Client Object Model c#, I'm giving showineditform=true but it is not working

Title.Required = true; 
Title.ReadOnlyField = true; 
Title.SetShowInDisplayForm(true); 
Title.SetShowInEditForm(true); 
Title.SetShowInNewForm(true);
  • Can you please post your code, so that we can identify the issue. – Pradip R. Apr 30 '15 at 13:53
  • Any solution for this – sindura May 7 '15 at 7:27
0

You can customize the edit form and configure the atribute "ControlMode" to the value "Display", see:

<SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Display" FieldName="Title" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>
  • I need through c#, client object model console app – sindura Apr 30 '15 at 14:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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