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


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


| improve this answer | |

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.