The True/False Field

The "True/False Field" gives you the ability to create a field which can either be true or false as its name suggests.

Field Settings

As you can see from the screenshot below, while setting up the field you can select the default value and what can be displayed in the frontend when you have toggled this field for either TRUE or FALSE.

acf-truefalse-customization-options

Let's see what each option does.

Name Description
Name The name will be used to identify the field. Leave this blank and Joomla will fill in a default value from the title.
Label The label of the field to display.
Description A description of the field that will be displayed in the label tooltip.
Required Is this a mandatory field?
Default Choice Choose the default choice to be between true or false or leave it blank
True Text The text to be displayed in the frontend for the TRUE value
False Text The text to be displayed in the frontend for the FALSE value

Usage

Its usage is fairly simple. Once you set it up then while in the article edit screen you can select whether its value should be TRUE or FALSE

acf-truefalse-usage

Frontend Display

Take a look at the screenshot below to see how it could be displayed in your frontend.

acf-true-false-frontend