Boolean filed in custom module

hi team, how do I add a boolean type to my custom module? I was not getting the boolean type in the add filed

Are you looking for a checkbox maybe?

not a checkbox, a kind of datatype with true or false values.
are there any options?

That is exactly a checkbox, its either checked (true) or not (false). Those fields are imho stored as tinyints, so you’ll find binary values in the db too.
Otherwise, you can also create a new dropdown field with key-value pairs like “true” => “I am true” and “false” => “I am false” (“valueOnDbLevel” => “LabelInUserinterface”). I personally would go for the checkbox though (keep it simple).

1 Like