setCustomValidity

The setCustomValidity() method of the HTMLFieldSetElement interface sets the custom validity message for the fieldset element.

MDN Reference