Contents
When to use apex inputfield and apex outfield?
Use this component to get user input for a controller method that does not correspond to a field on an sObject. Only and apex:outfield can be used with sObject fields. This component supports HTML pass-through attributes using the “html-” prefix.
When to use JavaScript for input checkbox in apex?
The JavaScript invoked if the onselect event occurs–that is, if the user selects the checkbox. A Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. A Boolean value that specifies whether this checkbox is a required field.
What is the Boolean value for disabled checkbox?
Possible values include “RTL” (right to left) or “LTR” (left to right). A Boolean value that specifies whether this checkbox should be displayed in a disabled state. If set to true, the checkbox appears disabled.
Can a sobject field be used in apex?
Only and apex:outfield can be used with sObject fields. This component supports HTML pass-through attributes using the “html-” prefix. Pass-through attributes are attached to the generated tag.
Use this component to pass variables from page to page. Use this component to get user input for a controller method that does not correspond to a field on an sObject. Only and apex:outfield can be used with sObject fields. This component supports HTML pass-through attributes using the “html-” prefix.
apex:inputHidden An HTML input element of type hidden, that is, an input element that is invisible to the user. Use this component to pass variables from page to page. Use this component to get user input for a controller method that does not correspond to a field on an sObject.
Only and apex:outfield can be used with sObject fields. This component supports HTML pass-through attributes using the “html-” prefix. Pass-through attributes are attached to the generated tag. The example above renders the following HTML: Required?
Can a rich text field be used in apex?
Use a different input component such as instead. An component for a rich text area field can’t be used for image uploads in Site.com sites or Force.com Sites due to security constraints.