I am displaying a yes / no field (Is Active) from my data type using Radio Buttons.
I set the default value to Current page’s Thing Is Active: formatted as text with “Yes” and “No”. This works as expected when the value has been set on the database, showing the correct radio button checked.
If the value on the database has not been set, it displays as “No”. I want to display the buttons as unchecked in this case.
PS displaying and saving a boolean value to a data type with a radio button is very confusingly complicated in Bubble.
@gary.homewood - you’ve just got to think about the question being yes or no. Is Current page’s Thing Is Active? yes=yes, no=no and empty=no.
You’ll have to play around with setting the radiobutton’s datasource as empty, then setting its datasource with a conditional if your Current page’s Thing Is Active yes/no isn’t empty.
@gary.homewood - yea seems to be a quirk with formatted as text. If you’re happy with lowercase yes/no default on the radiobutton this seems to handle the empty field (Current page’s thing Active?).
Otherwise consider using another data type (e.g. option set) for this yes/no.