Support

Account

Home Forums General Issues How to add ACF checkbox field to JS script? Reply To: How to add ACF checkbox field to JS script?

  • Hello Damian,

    I think you forgot some quotes
    maybe like this

    $slider_options = get_field('slider_options');
            // check
            if( $slider_options && in_array('nav', $slider_options) ): ?>'
            true;
            '<?php endif; ?>'