CustomField validation error

I´ve created a CustomField with two TextFields and one Combobox in a HorizontalLayout. If the input does not pass validation I want to display the whole field as invalid like in other single fields. Is there a possibility to do so?

Regards Rainer

Hi Rainer. Not sure what you’re after exactly, where do you want to show the error specifically, but you can show an error for any component with

myComponent.setErrorMessage(new UserError("invalid input"));

There display location of the error depends on the component.