Support

Account

Home Forums Backend Issues (wp-admin) Tabs bouncing back to first tab on input of conditional fields

Solved

Tabs bouncing back to first tab on input of conditional fields

  • @elliot

    Hi Elliot, and thanks for your enduring support.
    This is the follow up on my question on tabs bouncing back to first tab upon input of fiels within other tabs:
    I thought it easier for you to just have a peek at my setup of ACF & relevant field set, rather that exchanging endless posts. so here are the details for access & info on the field set which is an issue for me:
    Not to worry about the website it’s my own testing ground s& I’ve allowed access to you only :
    http://wp.jmbdev.com/wp-admin
    elliot / admin
    the custom post type / option / field set is “Publication”
    Many thanks again
    JMB

  • Hi @jmb

    The login details above are not working. Can you please test them and re-post the correct details?

    Also, please note you can mark a reply as private if you wish to keep the login details hidden to just you and me

    Thanks
    E

  • This reply has been marked as private.
  • Hi @jmb

    Thanks for the login.

    I can see an issue very similar to what you described!
    If I click on tab 2/3, then clear a required field’s vlaue, and then publish the page, the last tab (3/3) is activated…

    very strange.

    I’ll do some testing and find a fix

  • This reply has been marked as private.
  • Any fix for this? Having same problem.

  • @eiriksk
    Nope, I’ve googled some, but no, & I think @Elliot is researching the issue..
    An ACF bug ?
    Rgds,
    JM

  • I found the problem that makes the tab go back to the first tab. This error appears when you add Conditional Logic to a tab. @Elliot is there a way to fix this?
    I really need this to get this fixed.

  • Hi @eiriksk

    This is a pretty busy time of the year and I can’t guarantee this issue will be solved until after the new year.

    I’ll look into this soon and will have it fixed, but perhpas you will need to debug the issue yourself if you need an ASAP fix.

    The JS is in a file called /js/input.min.js. Open up the un minified version and copy it’s contents into the .min version. Now ACF will give you console errors with line numbers that mean something!

    Good luck

    Thanks
    E

  • I will wait for your fix, I wish you a Merry Christmas and Happy New Year.

  • If you remove this line of code, the tabs works perfectly.

    if( $target.siblings(':visible').exists() )
    		{
    // remove line bellow			
    
    ///////$target.siblings(':visible').first().children('a').trigger('click');

    }`

  • Hi @eiriksk

    Thanks for the code fix. I’ll look into this and figure out what is going wrong.

    Thanks
    E

  • @eirksk, @elliot,
    Thanks for the fix, I concur, works like a charm.
    I’ m sure that you didn’t write this “if” loop for nothing , though Elliot !
    Any side effects of commenting this line ?
    Don’t know enough JS to dig into the code & find this…
    Can’t find this line in the minified file though.& I guess it’s still more efficient to use it 🙂

    I’ll wait for your feedback on the above to close the topic
    Anyway thanks to both & have a great Christmas & a Happy New Year !
    JM

  • I played around with this for awhile now, still no side effects. Happy New Year to you both from Norway 🙂

  • Hey guys.

    Happy new yea, hope your well.

    Just wanted to follow up on this issue and report that I have found and fixed the issue!

    You can download the latest version from github, or wait for the full release soon.

    Thanks
    E

  • Thanks

    It’s only partly fixed in the new update though. If there is a hidden tab, it will still bounce back to the default tab whenever you change the value of a field, however, if all tabs are visible, it won’t bounce.

  • Hi everyone & and a Happy new Year to you all From Fram France :)!

    I’m afraid I concur : tabs are still bouncing back to first …!
    If the same if statement which caused the bug before the 4.3.3 release is still there, maybe it still causes the bug ? I’ll look into this.
    Anyway, it’s ‘back to work’ here after gorging on Christmas pudding & such ! 🙂
    Rgds,
    JM

  • Hi @jmb

    Is it possible for you to export your field group and attach it to a comment here? It will easy for me to use the same field setup as you to track down the bug

    Thanks
    E

  • Hi @Elliot,
    Below the XML export, sorry if ther field names are in French & therefore sometimes not so explicit…:( :

    
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
    <!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
    <!-- You may use this file to transfer that content from one site to another. -->
    <!-- This file is not intended to serve as a complete backup of your site. -->
    
    <!-- To import this information into a WordPress site follow these steps: -->
    <!-- 1. Log in to that site as an administrator. -->
    <!-- 2. Go to Tools: Import in the WordPress admin panel. -->
    <!-- 3. Install the "WordPress" importer from the list. -->
    <!-- 4. Activate & Run Importer. -->
    <!-- 5. Upload this file using the form provided on that page. -->
    <!-- 6. You will first be asked to map the authors in this export file to users -->
    <!--    on the site. For each author, you may choose to map to an -->
    <!--    existing user on the site or to create a new user. -->
    <!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. -->
    <!--    contained in this file into your site. -->
    
    <!-- generator="WordPress/3.8" created="2014-01-07 07:22" -->
    <rss version="2.0"
    	xmlns:excerpt="http://wordpress.org/export/1.1/excerpt/"
    	xmlns:content="http://purl.org/rss/1.0/modules/wp-content/"
    	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    	xmlns:dc="http://purl.org/dc/elements/1.1/"
    	xmlns:wp="http://wordpress.org/export/1.1/"
    >
    
    <channel>
    	<title>Association pour l'Histoire du Commerce</title>
    	<link>http://localhost/AHC</link>
    	<description></description>
    	<pubDate>Tue, 07 Jan 2014 07:22:42 +0000</pubDate>
    	<language></language>
    	<wp:wxr_version>1.1</wp:wxr_version>
    	<wp:base_site_url>http://localhost/AHC</wp:base_site_url>
    	<wp:base_blog_url>http://localhost/AHC</wp:base_blog_url>
    	<wp:author><wp:author_id>1</wp:author_id><wp:author_login>admin</wp:author_login><wp:author_email>[email protected]</wp:author_email><wp:author_display_name><![CDATA[admin]]></wp:author_display_name><wp:author_first_name><![CDATA[Jean Marc]]></wp:author_first_name><wp:author_last_name><![CDATA[Brosselin]]></wp:author_last_name></wp:author>
    	<wp:author><wp:author_id>3</wp:author_id><wp:author_login>CB</wp:author_login><wp:author_email>[email protected]</wp:author_email><wp:author_display_name><![CDATA[Claude Brosselin]]></wp:author_display_name><wp:author_first_name><![CDATA[Claude]]></wp:author_first_name><wp:author_last_name><![CDATA[Brosselin]]></wp:author_last_name></wp:author>
    	<wp:author><wp:author_id>5</wp:author_id><wp:author_login>FM</wp:author_login><wp:author_email>[email protected]</wp:author_email><wp:author_display_name><![CDATA[François Malaterre]]></wp:author_display_name><wp:author_first_name><![CDATA[François]]></wp:author_first_name><wp:author_last_name><![CDATA[Malaterre]]></wp:author_last_name></wp:author>
    	<wp:author><wp:author_id>6</wp:author_id><wp:author_login>Judas Paysant</wp:author_login><wp:author_email>[email protected]</wp:author_email><wp:author_display_name><![CDATA[Judas Paysant]]></wp:author_display_name><wp:author_first_name><![CDATA[Judas]]></wp:author_first_name><wp:author_last_name><![CDATA[Paysant]]></wp:author_last_name></wp:author>
    	<item>
    		<title>Saisie des Fiches de Publications</title>
    		<link>http://localhost/AHC/?acf=acf_saisie-des-fiches-de-publications</link>
    		<pubDate>Fri, 29 Nov 2013 17:44:07 +0000</pubDate>
    		<dc:creator>admin</dc:creator>
    		<guid isPermaLink="false">http://localhost/AHC/?post_type=acf&p=167</guid>
    		<wp:post_id>167</wp:post_id>
    		<wp:post_date>2013-11-29 18:44:07</wp:post_date>
    		<wp:post_date_gmt>2013-11-29 17:44:07</wp:post_date_gmt>
    		<wp:comment_status>closed</wp:comment_status>
    		<wp:ping_status>closed</wp:ping_status>
    		<wp:post_name>acf_saisie-des-fiches-de-publications</wp:post_name>
    		<wp:status>publish</wp:status>
    		<wp:post_parent>0</wp:post_parent>
    		<wp:menu_order>0</wp:menu_order>
    		<wp:post_type>acf</wp:post_type>
    		<wp:post_password></wp:post_password>
    		<wp:postmeta>
    			<wp:meta_key>_edit_last</wp:meta_key>
    			<wp:meta_value><![CDATA[1]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>position</wp:meta_key>
    			<wp:meta_value><![CDATA[normal]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>layout</wp:meta_key>
    			<wp:meta_value><![CDATA[default]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>hide_on_screen</wp:meta_key>
    			<wp:meta_value><![CDATA[a:10:{i:0;s:11:"the_content";i:1;s:7:"excerpt";i:2;s:13:"custom_fields";i:3;s:9:"revisions";i:4;s:4:"slug";i:5;s:6:"author";i:6;s:6:"format";i:7;s:14:"featured_image";i:8;s:10:"categories";i:9;s:15:"send-trackbacks";}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d272b927b</wp:meta_key>
    			<wp:meta_value><![CDATA[a:14:{s:3:"key";s:19:"field_5298d272b927b";s:5:"label";s:5:"Titre";s:4:"name";s:17:"publication_titre";s:4:"type";s:4:"text";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:10:"formatting";s:4:"html";s:9:"maxlength";s:0:"";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:4:"null";s:8:"operator";s:2:"==";s:5:"value";s:0:"";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:1;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d2eab927d</wp:meta_key>
    			<wp:meta_value><![CDATA[a:11:{s:3:"key";s:19:"field_5298d2eab927d";s:5:"label";s:5:"Sujet";s:4:"name";s:17:"publication_sujet";s:4:"type";s:7:"wysiwyg";s:12:"instructions";s:57:"Indiquer en quelques lignes le sujet de cette publication";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:7:"toolbar";s:4:"full";s:12:"media_upload";s:2:"no";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:2;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d29eb927c</wp:meta_key>
    			<wp:meta_value><![CDATA[a:8:{s:3:"key";s:19:"field_5298d29eb927c";s:5:"label";s:22:"Auteur Membre de l'AHC";s:4:"name";s:0:"";s:4:"type";s:3:"tab";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"1";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:5;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d394a3a51</wp:meta_key>
    			<wp:meta_value><![CDATA[a:8:{s:3:"key";s:19:"field_5298d394a3a51";s:5:"label";s:17:"Infos Publication";s:4:"name";s:0:"";s:4:"type";s:3:"tab";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:4:"null";s:8:"operator";s:2:"==";s:5:"value";s:0:"";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:0;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d58d9846a</wp:meta_key>
    			<wp:meta_value><![CDATA[a:13:{s:3:"key";s:19:"field_5298d58d9846a";s:5:"label";s:19:"Type de Publication";s:4:"name";s:16:"publication_type";s:4:"type";s:8:"taxonomy";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:8:"taxonomy";s:16:"publication_type";s:10:"field_type";s:6:"select";s:10:"allow_null";s:1:"0";s:15:"load_save_terms";s:1:"1";s:13:"return_format";s:6:"object";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:4:"null";s:8:"operator";s:2:"==";s:5:"value";s:0:"";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:3;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d96b297a3</wp:meta_key>
    			<wp:meta_value><![CDATA[a:13:{s:3:"key";s:19:"field_5298d96b297a3";s:5:"label";s:31:"L'auteur est il membre de l'AHC";s:4:"name";s:22:"publication_author_ahc";s:4:"type";s:5:"radio";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:7:"choices";a:2:{s:28:"L'auteur est membre de l'AHC";s:28:"L'auteur est membre de l'AHC";s:34:"L'auteur n'est pas membre de l'AHC";s:34:"L'auteur n'est pas membre de l'AHC";}s:12:"other_choice";s:1:"0";s:17:"save_other_choice";s:1:"0";s:13:"default_value";s:28:"L'auteur est membre de l'AHC";s:6:"layout";s:8:"vertical";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:4:"null";s:8:"operator";s:2:"==";s:5:"value";s:0:"";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:4;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d9e4297a4</wp:meta_key>
    			<wp:meta_value><![CDATA[a:11:{s:3:"key";s:19:"field_5298d9e4297a4";s:5:"label";s:42:"Trouver l'auteur dans la liste des membres";s:4:"name";s:21:"publication_author_id";s:4:"type";s:9:"page_link";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:9:"post_type";a:1:{i:0;s:6:"member";}s:10:"allow_null";s:1:"0";s:8:"multiple";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"1";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:6;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299a58668e7a</wp:meta_key>
    			<wp:meta_value><![CDATA[a:10:{s:3:"key";s:19:"field_5299a58668e7a";s:5:"label";s:77:"L'auteur de cette publication a-t-il déjà rédigé des articles pour l'AHC?";s:4:"name";s:30:"publication_ahc_author_contrib";s:4:"type";s:10:"true_false";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:7:"message";s:0:"";s:13:"default_value";s:1:"1";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"1";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:7;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299a61868e7b</wp:meta_key>
    			<wp:meta_value><![CDATA[a:11:{s:3:"key";s:19:"field_5299a61868e7b";s:5:"label";s:54:"Confirmer en le selectionnant dans la liste ci-dessous";s:4:"name";s:29:"publication_author_ahc_author";s:4:"type";s:4:"user";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:4:"role";a:1:{i:0;s:3:"all";}s:10:"field_type";s:6:"select";s:10:"allow_null";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"1";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5299a58668e7a";s:8:"operator";s:2:"==";s:5:"value";s:1:"1";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:8;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299a9ccb6b76</wp:meta_key>
    			<wp:meta_value><![CDATA[a:8:{s:3:"key";s:19:"field_5299a9ccb6b76";s:5:"label";s:34:"L'auteur n'est pas Membre de l'AHC";s:4:"name";s:0:"";s:4:"type";s:3:"tab";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"1";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:34:"L'auteur n'est pas membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:9;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299aa22b6b77</wp:meta_key>
    			<wp:meta_value><![CDATA[a:14:{s:3:"key";s:19:"field_5299aa22b6b77";s:5:"label";s:4:"Nom:";s:4:"name";s:27:"publication_author_lastname";s:4:"type";s:4:"text";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:10:"formatting";s:4:"html";s:9:"maxlength";s:2:"50";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:10;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299aa58b6b78</wp:meta_key>
    			<wp:meta_value><![CDATA[a:14:{s:3:"key";s:19:"field_5299aa58b6b78";s:5:"label";s:8:"Prénom:";s:4:"name";s:28:"publication_author_firstname";s:4:"type";s:4:"text";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:10:"formatting";s:4:"html";s:9:"maxlength";s:2:"50";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:11;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299aa99b6b79</wp:meta_key>
    			<wp:meta_value><![CDATA[a:12:{s:3:"key";s:19:"field_5299aa99b6b79";s:5:"label";s:13:"Adresse mail:";s:4:"name";s:24:"publication_author_email";s:4:"type";s:5:"email";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:12;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299ab72e0331</wp:meta_key>
    			<wp:meta_value><![CDATA[a:8:{s:3:"key";s:19:"field_5299ab72e0331";s:5:"label";s:14:"La Publication";s:4:"name";s:0:"";s:4:"type";s:3:"tab";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:13;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299ab8de0332</wp:meta_key>
    			<wp:meta_value><![CDATA[a:13:{s:3:"key";s:19:"field_5299ab8de0332";s:5:"label";s:12:"S'agit-il...";s:4:"name";s:18:"publication_format";s:4:"type";s:5:"radio";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:7:"choices";a:3:{s:26:"... d'un ouvrage publié ?";s:26:"... d'un ouvrage publié ?";s:46:"... d'un article à retranscrire sur le site ?";s:46:"... d'un article à retranscrire sur le site ?";s:57:"... d'un lien vers un article publié sur un autre site ?";s:57:"... d'un lien vers un article publié sur un autre site ?";}s:12:"other_choice";s:1:"0";s:17:"save_other_choice";s:1:"0";s:13:"default_value";s:0:"";s:6:"layout";s:8:"vertical";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:14;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299acd116f44</wp:meta_key>
    			<wp:meta_value><![CDATA[a:14:{s:3:"key";s:19:"field_5299acd116f44";s:5:"label";s:18:"Titre de l'ouvrage";s:4:"name";s:22:"publication_book_title";s:4:"type";s:4:"text";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:10:"formatting";s:4:"html";s:9:"maxlength";s:0:"";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5299ab8de0332";s:8:"operator";s:2:"==";s:5:"value";s:26:"... d'un ouvrage publié ?";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:15;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299ad2716f45</wp:meta_key>
    			<wp:meta_value><![CDATA[a:15:{s:3:"key";s:19:"field_5299ad2716f45";s:5:"label";s:21:"Année de publication";s:4:"name";s:21:"publication_book_year";s:4:"type";s:6:"number";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:3:"min";s:4:"1900";s:3:"max";s:4:"2015";s:4:"step";s:1:"1";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5299ab8de0332";s:8:"operator";s:2:"==";s:5:"value";s:26:"... d'un ouvrage publié ?";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:16;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299af1173901</wp:meta_key>
    			<wp:meta_value><![CDATA[a:11:{s:3:"key";s:19:"field_5299af1173901";s:5:"label";s:47:"Rediger - Copier / Coller l'article  ci-dessous";s:4:"name";s:24:"publication_article_text";s:4:"type";s:7:"wysiwyg";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:7:"toolbar";s:4:"full";s:12:"media_upload";s:2:"no";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5299ab8de0332";s:8:"operator";s:2:"==";s:5:"value";s:46:"... d'un article à retranscrire sur le site ?";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:17;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>rule</wp:meta_key>
    			<wp:meta_value><![CDATA[a:5:{s:5:"param";s:9:"post_type";s:8:"operator";s:2:"==";s:5:"value";s:11:"publication";s:8:"order_no";i:0;s:8:"group_no";i:0;}]]></wp:meta_value>
    		</wp:postmeta>
    	</item>
    </channel>
    </rss>
    

    Thanks for the trouble ! strange bug !
    Rgds,
    JM

  • @Elliot,
    Oups, sorry, didn’t see I could add an attachment, so here is the xml..
    Rgds,
    JM

  • Hey Elliot,

    I am having the exact same problem.
    I have multiple tabs wich hide/show with conditions.

    Hope you can fix this in a new release.

    Kind regards
    Dennis de Groot

  • Hi @jmb

    Looks like the upload didn’t work. Maybe a size or file type error?
    Thanks for posting the export as code, I’ll use that in a xml file to test!

    Thanks
    E

  • Hi @jmb

    Thanks again for the export. I can see the issue and am working on a fix!

    Thanks
    E

  • Hi @jmb @R3dDevil

    I have done some major work on the tab and conditional logic JS in an attempt to fix the issue. I think I have fixed it, but I may have missed a thing or two.

    Can you please download the latest code from github and let me know how it goes?
    https://github.com/elliotcondon/acf

    Thanks
    E

  • @Elliot,

    Sorry to disapoint you but still no change:
    If you still have my fields ‘ setup you will see that once on 2nd tab, and on change of an ‘ author’ (names in the drop down list…), ACF bounces back to the first tab, to which I made no changes to the suggested default values…

Viewing 25 posts - 1 through 25 (of 44 total)

The topic ‘Tabs bouncing back to first tab on input of conditional fields’ is closed to new replies.