• Are you a partner? Please find our certification tracks on our legacy Academy.

Boolean Field

The Boolean input field enables users to input a ‘true’ or ‘false’ value in an entry. When you add this field in the content type, it is displayed as an on/off toggle switch on the entry page.

The default value is always ‘false.’

CSendUserTraining_L11_img-1.png

Understanding with an example

  • Consider a website with a form with the terms and conditions or privacy policies of your company's legal agreement. On this form is a clickwrap field labeled 'I Agree' to obtain consent from the users. The users will have the option to agree or disagree with your company's policies. In such cases, you will be using a Boolean field.

The following diagrams depict how a boolean field will look in the entry:

CSendUserTraining_L11_img-2.png

CSendUserTraining_L11_img-3.png

  • You can easily toggle the switch to set the value to 'false' or 'true.'

  • The Default Value option helps you to set pre-define state of the boolean field. The value selected here will appear by default when an entry for this content type is created.

CSendUserTraining_L11_img-4.png

Further Reading