Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using selection in Conditional Logic #16

Open
bujoo opened this issue May 3, 2018 · 2 comments
Open

Using selection in Conditional Logic #16

bujoo opened this issue May 3, 2018 · 2 comments

Comments

@bujoo
Copy link

bujoo commented May 3, 2018

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!

@vguenichon
Copy link

Same here. It would be nice.

@samjco
Copy link

samjco commented Jun 3, 2020

@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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants