Options form field written in HTL.
- Checkboxes
- Radio buttons
- Drop down
- Multi select drop down
The Form Options component uses the com.adobe.cq.wcm.core.components.models.form.Options
Sling Model for its Use-object.
The following properties are written to JCR for this Form Options component and are expected to be available as Resource
properties:
./type
- defines the type of options form; possible values:checkbox
,radio
,drop-down
,multi-drop-down
./title
- defines the title of the form, which is used to describe its role./name
- defines the name of the field, which will be submitted with the form data./source
- defines the source of the options; possible values:local
,list
,datasource
./listPath
- defines the path of a static list for the options, if thesource
property is set tolist
./datasourceRT
- defines the resource type of the datasource, if thesource
property is set todatasource
./items
- defines the option items, if thesource
property is set tolocal
./helpMessage
- defines a help message that can be rendered in the field as a hint for the user./id
- defines the component HTML ID attribute.
The component provides a core.wcm.components.form.options.v2.editor
editor client library category that includes
CSS for dialog style adjustments. It is already included by its edit dialog.
BLOCK cmp-form-options
ELEMENT cmp-form-options__legend
ELEMENT cmp-form-options__field-label
ELEMENT cmp-form-options__field
MOD cmp-form-options__field--checkbox
MOD cmp-form-options__field--radio
ELEMENT cmp-form-options__field-description
ELEMENT cmp-form-options__label
ELEMENT cmp-form-options__drop-down-field
ELEMENT cmp-form-options__multi-drop-down-field
ELEMENT cmp-form-options__help-message
- Vendor: Adobe
- Version: v2
- Compatibility: AEM 6.3
- Status: production-ready
- Documentation: https://www.adobe.com/go/aem_cmp_form_options_v2