Nullable boolean field in form component

Hi there,

The community has posted something along the lines of making sure that Boolean fields are not null.

My question is the opposite. I was wondering if there was any support for nullable Boolean fields. In my database schema, there are cases where booleans are only applicable in certain cases, and thus a nullable boolean field is needed. Right now, both the Switch and Checkbox component map "null" values to "false".

Thanks for your help!

Hey @timmyxieat!

Would you mind describing in a bit more detail what you'd like the user interaction to look like? Something like this might be done using a select component whose options are set to true/false but that might not be what you're looking for.
nullable_boolean_select.json

Ah, yes, a select component!

I think this may be exactly what I'm looking for, thanks for shining some light on this.