uncheckedValue - Unchecked Value

Specifies the value of a data element bound to a cleared (as opposed to selected) control.

Category

data

Syntax

uncheckedValue="value"

Usage

In Design mode, click Data under Properties and look for Value when unchecked, or click All Properties and look for uncheckedValue under data.

This property applies to a control that can be selected or cleared such as a check box, and defaults to the string false.

Examples

This Check Box control assigns a data value depending on whether the box is selected (default) or cleared.
<xp:checkBox id="checkBox2" text="Use user name instead of Anonymous"
	defaultChecked="true" value="#{document1.loginname}" uncheckedValue="Anonymous"
	checkedValue="#{javascript:session.getUserName()}">
</xp:checkBox>