• Resolved kuipou

    (@kuipou)


    I’ve been at this since 3 days but no avail I’m trying to implement Conditionals via one of these two plugins on a fresh wp install :
    https://github.com/jcchavezs/cmb2-conditionals
    https://github.com/awran5/CMB2-conditional-logic

    my CMb2 directory is [theme url]/function/cmb2/
    when I try to load up the example of the first one on a custom post multicheck stops working for the conditional
    the only thing i see as an error is this in the console on both plugin

    
    load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2 Uncaught Error: Syntax error, unrecognized expression: [name="_yourprefix_conditions_demo_repeatable-group[0][["_yourprefix_conditions_demo_repeatable-group","checkbox"]]"]
        at Function.ea.error (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2)
        at ea.tokenize (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2)
        at ea.select (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2)
        at Function.ea [as find] (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2)
        at n.fn.init.find (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2)
        at new n.fn.init (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2)
        at n (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2)
        at HTMLInputElement.<anonymous> (cmb2-conditional-logic.min.js?ver=1.0.0:9)
        at Function.each (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2)
        at n.fn.init.each (load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2)
    ea.error @ load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2
    ea.tokenize @ load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2
    ea.select @ load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2
    ea @ load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2
    find @ load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2
    n.fn.init @ load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2
    n @ load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2
    (anonymous) @ cmb2-conditional-logic.min.js?ver=1.0.0:9
    each @ load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2
    each @ load-scripts.php?c=1&load[chunk_0]=jquery-core,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-position,jquery-ui-tooltip&ver=5.5.1:2
    b @ cmb2-conditional-logic.min.js?ver=1.0.0:9
    (anonymous) @ cmb2-conditional-logic.min.js?ver=1.0.0:9
    (anonymous) @ cmb2-conditional-logic.min.js?ver=1.0.0:9
    
    
Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not managing to recreate that error, but I am also noticing that it doesn’t appear to be switching things out in general for me in my local either.

    One thing to note is that neither of those conditionals plugins are “ours”. They were developed by 3rd party developers. Those people may be your best bet for the support.

    Reading over the readme.md file on GitHub for that second one, I do see they say “The plugin currently supports checkboxes, radios and select lists.” which may not presently include/work within repeatable groups.

Viewing 1 replies (of 1 total)

The topic ‘CMB2 Conditional’ is closed to new replies.