Home Forums ACF PRO ACF in jQuery function Reply To: ACF in jQuery function

  • so, i have fields in the products i want to show on the site.

    Kay and values

    The problem is that I have to use jQurry because of the dynamic display.

    I tried to test in the console like this first, but I can’t get the values

    function action_wc_before_single_variation() {
        <script type="text/javascript">
            $('form.variations_form').on('show_variation', function(event, data){
                console.log( data.variation_id );      // The variation Id  <===  <===
    			console.log( data.variation_description );        // The variation description  <===  <===
    			var field = acf.getField('fork_model');
    			console.log( $field );

    Am I wrong somewhere?