for - Select Target Control

Redirects focus to another control on the XPage.

Category

basics

Syntax

for="id"
Where id is the identifier of a control on the XPage.

Usage

In Design mode, click the top tab under Properties and look for Select target control, or click All Properties and look for for under basics.

When the user clicks or otherwise puts focus on this control, focus goes to the target control.

Examples

This Label control redirects focus to an Input Box control:
<xp:label
	value="#{javascript:session.getCommonUserName()}"
	id="label1" style="color:rgb(0,0,255)" for="inputText1">
</xp:label>