The Check Box Web component creates a form element that a user
can toggle as true or false. For example, if a check box is checked, its value
will be sent when the form is submitted. If a check box is unchecked, its
value will not be sent.
General tab (iwcl:WCheckBox)
- Name
- Enter a unique identifier for the IBM® i Web component. Do not use blanks or hyphens in a name. See Rules for IBM i Web component names and values.
- Text
- Enter a text description that you want to appear to the right
of the Web component. For example, this may be an instruction for the user.
- See Text string substitution for IBM i Web component labels for
information about externalizing text strings for text substitution purposes.
- Value
- Enter the value that is sent to the program when the Web component is
checked.
- Initial state
- Select Disabled, Hidden, Selected, or a combination
of these options.
- Disabled
- Indicates that the Web component is not available for use.
- Hidden
- Indicates that the Web component is not visible on the page.
- Selected
- Indicates that the Check Box should initially contain a check mark.
- Orientation
- Select the value to indicate the direction of the text and the alignment
of the Web component on the page. The possible values are Default, Left-to-right,
or Right-to-left.
- Default
- Specifies that the text direction and the alignment of the Web component
on the page are inherited from the containing element.
For example, if the
Web component is inserted in a form, and the form's orientation is specified
as Right-to-left, then the orientation for the Web component is also Right-to-left.
The
default is Left-to-right.
- Left-to-right
- Specifies that the text direction is left-to-right, and that the Web component
is left-aligned on the page. This value overrides the inherited value.
- Right-to-left
- Specifies that the text direction is right-to-left, and that the Web component
is right-aligned on the page. This value overrides the inherited value.
- Tool tip
- Enter the description to be displayed when the mouse pointer is on the
Web component.
- See Text string substitution for IBM i Web component labels for
information about externalizing text strings for text substitution purposes.
- Access key
- Specify a character to be associated with a shortcut key that a user selects
to bring focus to the Web component.
- Tab index
- Enter a number for the tab order of the Web component that is created.
For example, a value of 1 means that this Web component is the first object
to receive focus in the tab sequence.
Events tab
- Events
- Choose any of the events in the list and use the JavaScript language
to code an action for that event in the Script field. For example,
if you select OnBlur , you might code the script alert("not
applicable");. For a brief description of the events that apply
to this Web component, see Web
component events.
Styles tab
The Styles tab contains inline
style options for the
IBM i Web
component.
- Inline Style
- Select the Fonts, Font styles, Background
Color, and Text layout buttons to open
the respective style definition windows. Use each window to select the options
that you want to apply to the IBM i Web
component.