Home Forums Feature Requests Give "Message" Field Collapsible Function


Give "Message" Field Collapsible Function

  • Dear ACF,

    I am using the “message” field type as a way to leave notes for my client using acf to populate data. Instructions sometimes become too long on the backend.

    So is it possible to make it a Collapsible ?

  • 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 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.