this.setCustomValidity('ERROR_TEXT')this.setCustomValidity('ERROR_TEXT') This code is works well. I think there is no way to do it without js