Rating field.
Attributes:
| Attribute | Examples | Description |
| name* | name="unique_field_name" | The field name. Needs to be unique in the form. Required. |
| value | value="0" value="5" value="10" | The initial field value. Optional. |
| icon | icon="check" icon="check_empty" icon="face" icon="face_empty" icon="happy" icon="happy_empty" icon="sad" icon="sad_empty" icon="heart" icon="heart_empty" icon="radio" icon="radio_empty" icon="star" icon="star_empty" icon="thumb_down" icon="thumb_down_empty" icon="thumb_up" icon="thumb_up_empty" icon="URL_TO_CUSTOM_IMAGE" | Defines the ON icon. Accepts the name of one of the pre-defined icons or a URL to an image. Default: star. Optional. |
| icon_off | icon_off="check" icon_off="check_empty" icon_off="face" icon_off="face_empty" icon_off="happy" icon_off="happy_empty" icon_off="sad" icon_off="sad_empty" icon_off="heart" icon_off="heart_empty" icon_off="radio" icon_off="radio_empty" icon_off="star" icon_off="star_empty" icon_off="thumb_down" icon_off="thumb_down_empty" icon_off="thumb_up" icon_off="thumb_up_empty" icon_off="URL_TO_CUSTOM_IMAGE" | Defines the OFF icon. If not defined, will use the the empty version of the icon defined on the icon attribute. Default: {icon}_empty. Optional. |
| color | color="white" color="#FFFFFF" color="rgb( 255,255, 255 )" color="rgba( 255,255, 255, 0.5 )" | Defines the ON icon color. If not defined, and icon is one of the pre-defined icons, then will use one of the pre-defined colors. NOTE: For custom images, if you define a color, the image will be filtered with that color. It's important tha image should have transparency in order to apply the color filter correctly. Optional. |
| color_off | color_off="black" color_off="#000000" color_off="rgb( 0,0, 0 )" color_off="rgba( 0,0, 0, 0.5 )" | Defines the OFF icon color. If not defined, and icon_off is one of the pre-defined icons, then will use one of the pre-defined colors. NOTE: For custom images, if you define a color, the image will be filtered with that color. It's important tha image should have transparency in order to apply the color filter correctly. Optional. |
| max | max="3" max="5" max="10" | Defines the maximum rating available. Default: 5. Optional. |
| width | width="18" width="24" width="32" | The icons width in pixels. Default: 32. Optional. |
| height | height="18" height="24" height="32" | The icons height in pixels. Default: 32. Optional. |
This field also supports common HTML attributes, as well as label & description attributes.