How do you change the control that takes initial focus in edit mode for a custom page layout?

<PublishingWebControls:EditModePanel runat="server">
 <SharePointWebControls:TextField runat="server" FieldName="Title"  />
 <PublishingWebControls:RichHtmlField runat="server" FieldName="Content1" />
 <SharePointWebControls:NoteField runat="server" FieldName="Summary" />
 <PublishingWebControls:RichHtmlField runat="server" FieldName="Content2" />

In the example above I would like "Content2" to have initial focus

1 Answer 1


You can only do it for RichText Fields, and you do it via the HasInitialFocus property


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.