Title: CMB2 Conditional
Last modified: October 11, 2020

---

# CMB2 Conditional

 *  Resolved [kuipou](https://wordpress.org/support/users/kuipou/)
 * (@kuipou)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cmb2-conditional/)
 * 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/jcchavezs/cmb2-conditionals)
   [https://github.com/awran5/CMB2-conditional-logic](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](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cmb2-conditional/#post-13523380)
 * 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.

 * ![](https://ps.w.org/cmb2/assets/icon.svg?rev=2866672)
 * [CMB2](https://wordpress.org/plugins/cmb2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmb2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmb2/)
 * [Active Topics](https://wordpress.org/support/plugin/cmb2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmb2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmb2/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/cmb2-conditional/#post-13523380)
 * Status: resolved