Newer Version Available

This content describes an older version of this product. View Latest

Forms, Fields, and Labels

Input components are designed to make it easy to assign labels to form fields. Labels build a programmatic relationship between a form field and its textual label. When using a placeholder in an input component, set the label attribute for accessibility.

Button with label
1swfobject.registerObject("clippy.codeblock-0", "9");<ui:inputText label="Search" labelPosition="hidden" placeholder="Search" />

Set labelPosition="hidden" to hide the label visually but still maintain accessibility..