Custom Fields
Re-Envisioned
Support MB Settings Page Suggesting a Logic and Validation for Multiple checbox

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 2 years ago.

  • Creator
    Topic
  • #6671
    Resolved
    Locke
    Participant

    I’m trying to validate my checkboxes

    If I select a Checkbox the others disappear and vice versa

    this is my Meta

    https://ghostbin.com/paste/fka89

    and my Function is a mess:

    Because I’m trying to validate not only if is active also if an input is filled show Only this input if both are filled show both .

    https://ghostbin.com/paste/hts7u

    My brain is simple freezed, because I can think in a good solution .

    Thank you

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #6710

    Anh Tran
    Keymaster

    Hi,

    I see your code to register meta boxes has no problem. Do you want to optimize the code to get the values (and show them) in the frontend? By reducing the number of IF checks?

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.