Support

Account

Home Forums Backend Issues (wp-admin) update "instructions" after load if fields are filled out? Reply To: update "instructions" after load if fields are filled out?

  • Thanks yeah i solved it that way….

    function my_head_input()
    {
        ?>
        <style type="text/css">
        .field {width:50%; display:inline-block; vertical-align: top; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; padding:10px !important;}
        .field_type-repeater,.field_type-true_false {width:100%; padding: 10px 0!important;}
    
        </style>
    
        <script type="text/javascript">
        jQuery(document).ready(function(){
        "use strict";
            var isbn = jQuery('#acf-field-isbn').val();
            if (isbn) {
                jQuery('#acf-isbn p').append('<br><a href="http://www.bokrondellen.se/'+isbn+'.aspx" target="_blank"> Boklänk till Bokrondellen '+isbn+'</a>');
            }
        });
        </script>
        <?php
    }
    
    add_action('acf/input/admin_head', 'my_head_input');