Tuesday 22 July 2014

                                                             Visualforce: label

In visualforce input component and some output components automatically display a form label for the field by default. To override the default value, and for component that aren't mapped directly to object fields, we can set the label attribute of the component.

example :
<apex:inputText value="{!Contact.Email}" label ="{!Contact.FirstName + 
' 's Email '}"/>


label will be look like


label attribute may be a string, or an expression that evaluates to a string.
If we set label to an empty string, the form label for that field will be suppressed.

No comments:

Post a Comment