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)
I have a similar situation - custom component input field with a default value. When I add required: true and clear the input in the Builder editor, the field correctly shows an error message. However, when I click out of the input field, with it still blank, then the error message disappears and I am still able to publish my page. Is there any where to have the error message remain visible and block the user from publishing the page?