Value of unchecked checkboxes/switches

Support General Value of unchecked checkboxes/switchesResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10991
    HazmiHazmi
    Participant

    Hi,

    on switch/checkbox fields you wrote "This field saves the “on” and “off” status in the database as “1” or “0”.

    But it's a true? If i unchecked this field, this field not exists in the DB. Can you confirm this?

    #10996
    Anh TranAnh Tran
    Keymaster

    Hi Hazmi,

    The statement is correct. However, I missed the code for switch field. The checkbox field works correctly. I've just push the fixes for the switch on Github.

    #11175
    HazmiHazmi
    Participant

    Hi,

    i'm sorry, but your plugin upgrade with fix this issue didn't work. I don't see 0 in DB (meta field doesn't exist).

    Can you confirm this and make a really fix?

    #11176
    HazmiHazmi
    Participant

    .. and please, it has for me a high priority ..

    #11214
    Anh TranAnh Tran
    Keymaster

    Just want to note to this topic: the original bug with switch value is resolved, and the discussion continues here.

    #29824
    VictorVictor
    Participant

    Hi,

    Switch. Is it possible to save on/off in the database instead of 0/1?

    Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.