The color picker field type lets a website visitor specify a color, either by using a visual color-picker interface or by entering the color into a text field in “#rrggbb” hexadecimal format.
To learn how to add, edit, clone, move, resize, offset, or delete a color picker, please click here.
When editing a color picker, 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.
The basic tab contains settings that the majority of WS Form users will need to control a field. The settings are as follows:
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’.
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.
There are five positions you can choose from for your label:
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.
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.
If checked this field will be required when the website visitor completes your form. Failure to complete the field if this is checked will result in a validation message appearing under the field prompting the user to complete the field correctly.
Required fields are indicated on your website with the word ‘Required’ being adding to the label of the field. This can be changed in the form settings advanced tab.
The default color setting is used to set an initial color for the field on your form.
In basic mode simply click this setting and pick a default color.
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.
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.
The advanced tab contains additional form attribute settings that provide further control over how a field is rendered.
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.
Field restrictions enable you to define what can or cannot be entered into the field.
If checked the field will be disabled, and it cannot be interacted with. You can re-enable a field dynamically by using conditional logic.
This setting is used to add custom attributes to the field. You can add as many custom attributes as you need.
To add a custom attributes key value pair:
- Click the ‘Add’ icon to add a custom attribute row.
- Enter the key in the left column.
- Enter the value in the right column.
- Click ‘Save’ to save the custom attributes.
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.
Many field types have a datalist option. When a website visitor starts to type in a field, the browser will display options that it believes match what the website visitor is typing in. The website visitor can then click on the datalist option to speed up their data entry. Datalist is also used to provide hints to the website visitor as to the available options that can be entered for a field.
Tip: In some browsers you may need to activate a datalist function for this to work, while some older browsers may not support this feature.
To create datalist suggestions for the field, add rows to the datalist data grid. Data grids make entering lists of information quick and easy. You can also use the data grid to import a CSV file of data into the datalist field, which makes adding large suggestion lists easier than entering them one by one.
For more information about using WS Form data grids, click here.
Hex color references should be entered as color suggestions.