Custom Field required validation

System Information
  • Strapi Version: 4.6.1
  • Operating System: MacOs
  • Database: MariaDb
  • Node Version: 16.16
  • NPM Version: 8.11
  • Yarn Version:


I have created a custom field that I integrate in a collection and I want to be able to add a required attribute on an input in my custom field so that I can’t create or update my collection if the field is not filled. Does anyone have any idea how to do this?