Custom Fields
Re-Envisioned
Support General Value of unchecked checkboxes/switches

This topic contains 4 replies, has 2 voices, and was last updated by  Anh Tran 1 year, 1 month ago.

  • Creator
    Topic
  • #10991
    Resolved
    Hazmi
    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #10996

    Anh 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

    Hazmi
    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

    Hazmi
    Participant

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

    #11214

    Anh Tran
    Keymaster

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

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.