value


valuenumber

Sets or gets the rating value.

Setting the value property sets how many icons are displayed in the on state.

Set value to a whole number between 1 and 5.

To reset the ratings input element, restoring it to the empty state, set the value property to null or undefined.

Getting the value property returns the current displayed value.

Notes:

  • If an element is connected to a dataset, setting the element's value in code does not set the value of the connected field in the dataset. That means if you use the dataset to perform a submit, the value changed in code is not reflected in the submitted item.

  • To submit the new value using a dataset, set the field's value using the setFieldValue() function before performing the submit.

Was this helpful?
Yes
No