Input field

The Input field block in Greyd Forms allows you to insert a general input field into your form. It supports various input types such as text, email, link, date, and number. Once added to the form, the block provides a flexible set of configuration and styling options for adapting it to a wide range of use cases.

Screenshot of an Input Field block including its toolbar.

In the block toolbar, there are various styling options available for the label, including bold, italic, inline styling options as well as setting a link or a trigger.

Settings

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

In the Settings tab, you’ll find several configuration options that determine how the input field behaves.

Under General, you can change the Field Type to your preferred input field. Options include:

  • Text
  • Email
  • Phone number
  • Link
  • Number
  • Time
  • Date
  • Date and Time
  • Week (week number and year)
  • Month (month as text, e.g. “January” and year)

For email, phone number, link and number the tooltips get generated automatically with predefined text, depending on the selected field type. These tooltips can be individually changed as well.

The Field name will be generated automatically with a random string at the end, but can be individually edited. It is the identifier for this field in the form and also used for the dynamic form values.

There’s also a dropdown for configuring the Autofill behavior. This helps users fill in the field using browser-based suggestions. Available options include:

  • Automatically
  • Off
  • Name
  • First name
  • Last name
  • Email
  • Phone number
  • Street and house number
  • Zip code
  • City
  • Country
  • Country abbreviation

You can also mark the field as Required to ensure it must be filled before submission.

In the Assistance section, you can provide a tooltip to guide users when filling out the field. For some input types, a contextual help text is generated automatically. This text can be overwritten or removed entirely by entering only blank spaces.

Under Characters and columns, additional options can appear based on the selected field type:

  • Text: minimum and maximum character length and a toggle to make this input a multi-line field. When activated, you can set the number of lines, which defaults to five and can be extended up to 15.
  • Email, phone number, link: minimum and maximum character length
  • Number: start value, minimum value, maximum value, steps
  • All date related field types: start value, minimum value, maximum value. For all value fields, certain formats must be adhered to:
    • Time: 18:00
    • Date: 2020-12-31
    • Date and time: 2020-12-31T18:00
    • Week: 2020-W52
    • Month: 2020-12

The Animation section allows you to apply visual effects. In the Advanced section includes settings for additional CSS classes, the Greyd Styles class and hide by breakpoint options. For more information about both of these sections, see the respective linked documentation.

Styles

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

The Styles tab defines the visual appearance of the input field.

Under Styles, you can choose between two base styles — “Primary field” and “Secondary field” — as defined in the global styles. These presets allow consistent styling across multiple forms.

In the Dimension section, you can set padding and margin values using the native Core controls.

Under Label, you can adjust the font size and color of the field label. For the font size there are multiple options available, see the Range Unit Control component documentation.

The Width section allows you to control the field’s width. It’s also providing multiple options with the Range Unit Control component.

Within Individual field, you can enable a switch to override the global design settings. 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: