I have a frontend form that allows users to toggle a lightswitch field. I discovered that the entry does not update correctly when passing
false with the request, despite my frontend receiving such values from Craft. So instead I have to ensure that each
false value is converted to
0 which then lets the entry update correctly.
It isn't the end of the world, and I have things working now, but I'm curious if Craft should be accepting
false and I'm just doing something wrong?
Otherwise it'd kind of be nice if it could be consistent: Craft either puts out
false and accepts
false, or puts out
0 and accepts