Suggesting a Logic and Validation for Multiple checbox

Support MB Settings Page Suggesting a Logic and Validation for Multiple checboxResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6671
    LockeLocke
    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

    #6710
    Anh TranAnh 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 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.