- This topic has 4 replies, 3 voices, and was last updated 5 years, 4 months ago by
exposuredesign.
-
AuthorPosts
-
-
May 5, 2016 at 9:54 am #6435
semwangajoshuaMemberHullo there, I’m in situation where I would want to use an editor field but put a condition on it like the rest so that it displays only when another field value is equal to the one specified; just like the normal conditionals. However, I’ve noticed that when I add a condition parameter to the editor field, it stops working and won’t show up in the metabox. Is there a way to do this or it’s just not possible with Piklist? Thanks.
-
May 6, 2016 at 9:16 am #6449
SteveKeymaster@semwangajoshua– are you using v0.9.9.8? It’s the latest beta and supports editors in conditions. You can get it here.
-
October 9, 2016 at 12:33 pm #7418
exposuredesignMemberHey. Currently using v0.9.9.9 and trying to do a simple conditional with the field being hidden as an editor, but it refuses to hide/show.
Can you confirm if this is possible in the latest version?
-
October 10, 2016 at 11:41 pm #7419
SteveKeymasterI just changed a text field in the Demos Conditional tab to an Editor and it worked. Try copying some of that code.
-
October 11, 2016 at 10:28 am #7424
exposuredesignMemberThat’s essentially what I did, I’ve posted my code below.
piklist('field', array( 'type' => 'radio' ,'field' => 'news_sidebar_conditional' ,'label' => __('Does this news item have a sidebar?', 'piklist-demo') ,'choices' => array( 'show' => 'Yes' ,'hide' => 'No' ) ,'value' => 'hide' )); piklist('field', array( 'type' => 'editor' ,'field' => 'news_sidebar' ,'scope' => 'post_meta' ,'template' => 'field' ,'options' => array ( 'wpautop' => true ,'media_buttons' => true ,'tabindex' => '' ,'editor_css' => '' ,'editor_class' => '' ,'teeny' => false ,'dfw' => false ,'tinymce' => true ,'quicktags' => true ,'drag_drop_upload' => true ) ,'on_post_status' => array( 'value' => 'lock' ) ,'conditions' => array( array( 'field' => 'news_sidebar_conditional' ,'value' => 'show' ) ) ));
-
-
AuthorPosts
- You must be logged in to reply to this topic.