Support

Account

Home Forums Backend Issues (wp-admin) Add multiple markers on Gmap field in admin screen Reply To: Add multiple markers on Gmap field in admin screen

  • Hi @czokalapik

    I’m glad that you found it. I’m sorry I couldn’t help you right away.

    Regarding your question, I think you can do it by using the JS ‘load’ action like this:

    acf.add_action('load', function( $el ){
        
        // $el will be equivalent to $('body')
    
        // your code here
        console.log('test');
        
    });

    This page should give you more idea about it: https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/#actions.

    I hope this helps 🙂