Custom Fields
Re-Envisioned
Support Meta Box Conditional Logic Conditional Login Breaks with clonable groups

This topic contains 6 replies, has 2 voices, and was last updated by  Anh Tran 1 year, 7 months ago.

  • Creator
    Topic
  • #8071
    Resolved
    Ahmed Gamal
    Participant

    i created a clonable metabox group that contains a few fields (select , adv image , number).
    i used conditional logic on the select field to show the other two fields
    after i created a clone of the group , filled it with data and updated the post , when i press Add More to clone the group it clones but it shows me a broken version of the upper clone unless i update the post once again

    Note : im using metabox builder

    https://ghostbin.com/paste/ut92b

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #8091

    Anh Tran
    Keymaster

    Hi Ahmed,

    We have tested your code and it works. Please see this screenshot:

    https://prnt.sc/hv0kbg

    #8099

    Ahmed Gamal
    Participant

    have you tried updating the post then adding new clone after ?
    coz this is what i get when i try to add a clone after i update my post

    https://prnt.sc/hv8ewh

    #8101

    Ahmed Gamal
    Participant

    i just tested this again on a clean wordpress copy with twenty seventeen empty theme , and only metabox and metabox AIO plugins , an this still happen too

    #8109

    Anh Tran
    Keymaster

    Hi Ahmed,

    I have fixed the 1st issue with this commit. Can you please try it?

    Regarding the 2nd issue with the remove clone button, it’s actually a bug in your code. Please just close the </b> tag properly and the bug will go away.

    Let me know if you still see any bug.

    #8140

    Ahmed Gamal
    Participant

    Hello, thanks for fixing that issue but im still seeing other fields when i add a clone , these fields should be visible only when the type dropdown is set to ‘Slider’

    this is what i see

    #8178

    Anh Tran
    Keymaster

    Can you try with the latest version of Conditional Logic? I updated it 2 days ago. I tested with your code again and it works as expected.

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

You must be logged in to reply to this topic.