Dropdown

The Dropdown block in Greyd Forms allows you to insert a dropdown field into a form. After placing the block, you can immediately edit the label and placeholder text directly within the editor.

Screenshot of Dropdown block with editable label and placeholder.

While there are no styling options for the placeholder, the label text can be set to bold, italic or other inline styles, set a link or a trigger.

Settings

Screenshot of the Settings tab of Dropdown block, explained in the following paragraphs.

Under the General section, you change the automatically prepopulated field name that will be submitted with the form. You also have the options to make the field required and enable multiselect functionality. Please note that the multiselect mode is not accessible to screen readers and should be used with caution in accessibility-sensitive contexts.

In the Options section, you define the selectable entries. There are two input modes:

  • With Individually, each option is entered as a label-value pair using the “Add option” button.
  • With Collectively, you can paste or type multiple options in one field, using either just values or label=value pairs. Each entry must be separated by a comma or the Enter key.

The Assistance section provides an input for tooltips. This tooltip will appear next to the label.

The block also supports Animations. In the Advanced section, you can find settings for additional CSS classes, the Greyd Styles Class and toggles to hide the block per breakpoint.

Styles

Screenshot of the Styles tab of Dropdown block, explained in the following paragraphs.

In the Styles section, you can choose between two base styles that are defined globally: primary dropdown and secondary dropdown.

The Dimension settings come from WordPress Core and allow you to set padding values for all sides and margin values for top and bottom.

Under Label, you can define the label’s font size and color. The font size setting provides multiple different option, see the Range Unit Control component for more details. You also have the option to change the hover color for label settings, see the pseudo-classes documentation for more details.

The Width section lets you set the width of the dropdown. It uses the same Range Unit Control component for defining custom sizes. The width can also be set per breakpoint.

Finally, the Individual field toggle allows you to override the design of this particular field. See the Custom Button Styles component for more details.

Video

You are currently viewing a placeholder content from Vimeo. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.

More Information

Last updated: