Forum Replies Created
I just want to chime in and say I’m experiencing the same issue and that the js that @mnlearth posted solved the issue for me. Happy to try out any other solutions you might have and report back.
Thanks for the code – it works well enough except for the fact that the list of options can easily get ridiculously long in this particular situation. Unless we set a height on the checkbox container and scroll…
Interested to see what you guys have coming for the Post Relate field, it’s one I use often. I’m sure you’ve seen how CMB/CMB2 does theirs – basically a search/dropdown select with a repeater field. Really nice UI.
Thanks for the help.
piklist('field', array( 'type' => 'radio', 'field' => 'portfolio_type', 'label' => __('Company Type'), 'description' => __('Select a Type'), 'value' => 'platform', 'choices' => array( 'platform' => 'Platform', 'addon' => 'Add-on', ) )); piklist('field', array( 'type' => 'post-relate', 'scope' => 'portfolio', 'label' => 'Add Ons', 'conditions' => array( array( 'field' => 'portfolio_type', 'value' => 'platform' ) ) ));
Can I crack this thread open again? I’m trying to get a Post Relate field to show conditionally and ran into this bug – in my case the Post Relate field stays hidden no matter what selection is made on the controlling field.
Thanks for diving into it, looking forward to being able to use that feature. Should be quite useful for conditional fields. Great stuff!