formatValue

const val formatValue: String

A function to format the values of the individual fields contained by the custom field into a single component value. The function receives an array of all values of the individual fields in the order of their presence in the DOM, and must return a single component value. This function is called each time a value of an internal field is changed.

Example:

customField.formatValue = (fieldValues) => {
return fieldValues.join("-");
}