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);
2
  • Can you please post your code, so that we can identify the issue.
    – Pradip R.
    Apr 30, 2015 at 13:53
  • Any solution for this
    – sindura
    May 7, 2015 at 7:27

1 Answer 1

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')}"/>
1
  • I need through c#, client object model console app
    – sindura
    Apr 30, 2015 at 14:33

Your Answer

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

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