True/False Field

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

How to add a True/False Custom Field to Joomla! Articles

The True/False Field provides you the way to set the default choices as well as the text to appear for the True and False text.

acf-truefalse-field-settings

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-field-usage

Frontend Display

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

acf-truefalse-frontend

Frequently Asked Questions

How can I override the layout of "ACF - True/False" custom field?

To override the "ACF - True/False" custom field, read here: How to override the "ACF - True/False" custom field.
Last updated on Nov 26th 2024 12:11