I have a custom component with a field of type ‘List’.
If user does not add any entry in the list, I want to add a custom error message to user to mention at least one entry is required.
I also want to know if we can prevent the user from publishing the section if the above validation is not met? (in my case the custom component is being used in a section model)