Home Forums Feature Requests Give "Message" Field Collapsible Function Reply To: Give "Message" Field Collapsible Function

  • Hi @pxwee5

    You can always use the acf/input/admin_footer hook to add the JS script on the editor page. In that script, you can use the toggle() function to hide the message. Maybe something like this:

    add_action('acf/input/admin_footer', 'my_acf_collapse_message');
    function my_acf_collapse_message() {
        <script type="text/javascript">
        (function($) {
                $(".acf-field-message .acf-label").click(function() {
                    $( $(this) ).siblings().toggle();

    I hope this helps 🙂