ACF-Image-Select icon indicating copy to clipboard operation
ACF-Image-Select copied to clipboard

Using selection in Conditional Logic

Open bujoo opened this issue 6 years ago • 2 comments

Hello, Great add-on :) Only I want to use the selected option in my Conditional Logic for a other field. Do you know how I can add this to the functionality.

Thanks in advance!

bujoo avatar May 03 '18 00:05 bujoo

Same here. It would be nice.

vguenichon avatar Mar 14 '19 08:03 vguenichon

@cyberwani Can you add this slick hack to your plugin to enable conditional logic?


(function($){
    var myFieldName = 'image-select'; //name of field

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

samjco avatar Jun 03 '20 13:06 samjco