Select

The Select field creates a drop-down list with options.

To learn how to add, edit, clone, move, resize, offset, or delete a select field, please click here.

When editing a select field, the field settings sidebar will appear. This contains the following tabs:

You can edit any of the settings in each of these tabs, and then click the ‘Save’ button to save your changes. If you do not want to save your changes, you can click the ‘Cancel’ button or click any other form element to close the field settings sidebar.

Basic

The basic tab contains settings that the majority of WS Form users will need to control a field. The settings are as follows:

Label

This is the label shown alongside the field. As well as entering a label into this field, you can also double click the label of the field in the editor. You should enter an easy-to-understand label for your field, for example, ‘First Name’ or ‘Email’.

Render Label

If enabled the label will be shown on your form. If you do not want the label to appear for a particular field, uncheck this box.

Label Position

There are five options for positioning your label:

  • Default
  • Top
  • Left
  • Right
  • Bottom

The default position will place the label set in the Form Settings advanced tab. For new forms this will be the ‘Top’ positioning.

Note that when using some frameworks some label positions may not be available.

Label Width

If your label position is set to left or right, you can specify how wide the label will be. You can consider the overall width of the label and the field to be 12 columns (or whatever value is set in Settings). By default labels are rendered at 3 columns wide (1/4 width), which means the field itself is 9 columns wide (3/4 width). You can change the width of the label using this setting.

To change the default width of all labels in your form:

1. Click the form settings icon.
2. Click the ‘Advanced’ tab.
3. Scroll down to ‘Default Label Width’ and change the setting.
4. Click ‘Save’ at the bottom.

First Row Placeholder

The first row placeholder is used to add a single option at the top of the drop-down list, such as ‘Select’. It is assigned no value, so if the website visitor does not select an option, the field will be considered empty.

WS Form variables can be entered into this field.

Size

Selects fields are typically one row tall. You can make a Select field taller by increasing this value. For example setting the size to 5 will make the Select field 5 rows tall. This feature is useful if you enable ‘Multiple’ to allow the website visitor to select multiple options.

Multiple

Enabling this feature will enable the website visitor to select more than one option when submitting the form.

Selecting multiple options varies in different operating systems and browsers:

  • For Windows: Hold down the control (CTRL) button to select multiple options.
  • For Mac: Hold down the command button to select multiple options.

Because of the different ways of doing this, and because you have to inform the user that multiple selection is available, you may wish to consider using checkboxes instead.

Help Text

The help text setting enables you to add smaller text under the field to assist the website visitor in completing that field.

As well as inserting plain text into this field, WS Form also provides extensive functionality for adding character and word count information. Click here to learn more about this functionality.

WS Form variables can be entered into this field.

Accessibility

ARIA Label

Accessible Rich Internet Applications (ARIA) defines ways to make web content and web applications more accessible to people with disabilities.

This setting enables you to define what text is made available to ARIA applications. This would, for example, provide a screen reader with specific text to read to someone with a disability.

The value of this setting defaults to your field label. If you would like to change this, enter a new value.

WS Form variables can be entered into this field.

Advanced

The advanced tab contains additional form attribute settings that provide further control over how a field is rendered.

Classes

For developers WS Form allows you to add your own classes to fields.

Wrapper CSS Classes

The wrapper CSS class setting enables you to add a class (or classes) to a field wrapper. Field wrappers are sections of HTML added around a field to position them on the page. To add multiple classes, add a space between the class names.

Field CSS Classes

To add a class to the actual field element itself, enter a class (or classes) to this setting. To add multiple classes, add a space between the class names.

Validation

Render Invalid Feedback

Invalid feedback text is shown when a form is saved or submitted, and the field has not been completed according to the field settings you have configured. For example if the minimum character count is 10 and you enter 5 characters and then submit the form, the field will be deemed invalid. If this setting is checked, invalid feedback is shown under the field.

Invalid Feedback Text

WS Form automatically builds invalid feedback text for all of your fields. If no text is entered into this field, the value shown in the field in light gray text will be shown. If you would like to specify alternative invalid feedback text, you can enter it within this setting.

WS Form variables can be entered into this field.

Breakpoints

The breakpoint settings define the width of a field and also what the offset (how many columns from the left-hand side of the form or the previous field) of a field is for each breakpoint. For more information about the breakpoint settings and capabilities of WS Form, click here.

Options

The options in the Select drop-down are configured in this tab. Options are added using the data grid feature of WS Form. Data grids make entering lists of information quick and easy.

Using the data grid, you can mark a row as selected, disabled, or hidden.  You can also create opt-groups which allow you to group options together. For example this feature could be used to split a country list into continents.

For more information about using WS Form data grids, click here.