Support

Account

Home Forums ACF PRO ACF PRO: Make custom field available for conditional logic Reply To: ACF PRO: Make custom field available for conditional logic

  • Thanks for your solution. For ACF PRO v5.3.2.2 it should be:

    ;(function($){
        var myFieldName = 'my-field';
    
        $(document).ready(function () {
            $(document)
            .find('[data-type="'+ myFieldName +'"]')
            .data('type', 'radio'); // here is the change
        });
    })(jQuery);