RatingPRO

This rating field enables web users to give one or more ratings on your form.



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

When editing a rating 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 you can choose from 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.

Required

If checked, the rating field must be given a value from 1 to the maximum rating setting.

Hidden

If checked the field will be hidden on the form. It can be shown again using conditional logic or your own JavaScript.

Default Value

The default value setting is used to populate the field with a default value. Rating fields are return number values from 1 to the maximum rating setting. Enter a number in this field to set the default value.

WS Form variables can be entered into this field.

Help Text

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

WS Form variables can be entered into this field.

Maximum Rating

By default rating fields have a maximum rating of 5. Enter a number into this field to change the maximum rating shown.

Design

The design settings allow you to control how the rating field will appear.

Icon

WS Form has eight different built-in icon designs you can choose from for your rating field.

  • Check
  • Circle
  • Flag
  • Heart
  • Square
  • Smiley
  • Star
  • Thumbs Up

You can also select ‘Custom HTML’ to use your own HTML for each rating list item.

Size

The size setting allows you to specify the size of the rating icons in pixels.

Unselected Color

Choose the color you would like to use when a rating icon is not selected. This defaults to gray.

Selected Color

Choose the color you would like to use when a rating icon is selected or hovered over. This defaults to yellow.

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.

Custom Attributes

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:

  1. Click the ‘Add’  icon to add a custom attribute row.
  2. Enter the key in the left column.
  3. Enter the value in the right column.
  4. Click ‘Save’ to save the custom attributes.

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.