Version:

Acquia Cohesion renames to Site Studio from version 6.2. Tell me more.

    Select form element

    Use the Select form element to add a select (drop-down) field to your Component form. You can create custom selects or use existing selects from within the elements.

    For more information about creating editable components, see Create an editable component.

    Locating the select form element

    To find the Select form element:

    1. Navigate to a component
    2. Click the + button on the Component form builder
    3. Within the Fields tab, look for the Select form element.

    select.png

    The Select element includes the following fields:

    Field name

    • Field label - Provide a name for the form element. The field label will be displayed above the field in your component form. Important: It will also be used to auto-generate the field machine name. Auto generation only occurs until you have clicked Apply.
    • Machine name - Set the machine name of the field. Used as a token when linking an element to the field. Must be unique within the component. Important: If you need to change the machine name later, click the Edit icon on the field's right.

    Field settings

    You can either create a Custom select field or use an Existing select from within an Element.

    To create a custom select:

    1. Within Type, choose Custom select field
    2. Enter a label in the Label field. This is what the end-user will see in the Select.
    3. Enter a value in the Vaule field. This is the value that will be applied when the user selects the option
    4. Click + Add option to add additional options to the select.

    To use an existing select:

    1. Within Type, choose Existing select field
    2. Within Element tab, select the Tab within the Element the select field you require belongs to
    3. Within Element, select the Element the select field you require belongs to
    4. Within Field group, select the Field group the select field you require belongs to
    5. Within Field, select the Select field you require.

    You can convert Existing selects into Custom selects. Simply find the select you want using the 'Existing select' process (described above) and then click Custom select. All the values from the Existing select will be populated as Custom select options. You can then add or remove options as you require.

    Default

    • Option - When you have created your select field they become available within the Option field so you can select a default value.

    Visibility

    Tooltip

    • Tooltip text - Enter tooltip text here.
    • Tooltip placement - Define the position of the tooltip on hover of the field.
    DX8 knowledge base icon

    Frequently asked questions

    Get instant answers to common questions. Available online 24/7.

    Find answers

    Raise a ticket icon

    Raise a support ticket

    To raise a ticket, sign into Acquia Cloud and select Help in the top menu.

    Raise support ticket

    Acquia

    Copyright © 2020 Acquia, Inc. All Rights Reserved. Drupal is a registered trademark of Dries Buytaert.