fm:focus is used to position the cursor to the input field identified by the XPath.
![]()
Focus on an element in the Data DOM:
<fm:focus xpath="/*/CD_INFO/TRACK_TITLE"/>
Focus on an element in the Theme DOM:
<fm:focus xpath=":{theme}/ASSIGN_TO/WUA_ID"/>
Use a context pointer to focus:
<fm:focus xpath=":{action}/FORENAME"/>
Focus on an element and highlight all of its text:
<fm:focus xpath=”/*/CD_INFO/TRACK_TITLE” selectionStart=”0” selectionEnd=”999999999”/>