The Boolean field can be used where you want to take input in True or False. When you use this field, a checkbox is added for the field.
For example, you can add this field to take consent from the user on whether they accept the terms and conditions.
You can learn more about how you can add this field to a content type in this article.
Configure more options as per your need
There are various properties of the Boolean field that can be configured additionally, which are:
- Make it a required field.
- Make it a private field.
- Add a default value to the field.
- Add some help text to show information in a tooltip.