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

Usable in Conditional Logic #5

Closed
leolll opened this issue Feb 3, 2017 · 6 comments
Closed

Usable in Conditional Logic #5

leolll opened this issue Feb 3, 2017 · 6 comments

Comments

@leolll
Copy link

leolll commented Feb 3, 2017

Any way to make the Country field type available for Conditional Logic? Currently, ACF doesn't consider it a toggle field.

@nlemoine
Copy link
Owner

nlemoine commented May 2, 2017

Hi @leolll

ACF currently doesn't provide an official (and handy) way to handle conditional logic in custom field types (see the issue referenced above, ACF author said this is planned for this year).

Anyway, I figured something out to make this work in the meantime (only works on v5/pro).

Can you please test this before I release it? You can download the conditional logic enabled version on this branch: https://github.com/nlemoine/acf-country/tree/feature-conditional

@leolll
Copy link
Author

leolll commented May 3, 2017

@nlemoine Thanks for taking a look at this. I've only got v4 installed so I can't help test this.

@nlemoine
Copy link
Owner

nlemoine commented May 3, 2017

@leolll
I enabled conditional logic for ACF v4. Can you test it?

@leolll
Copy link
Author

leolll commented May 3, 2017

@nlemoine Works great! Tried it with multiple field types using "is equal to" & "is not equal to" and it worked in all cases.

@nlemoine
Copy link
Owner

nlemoine commented May 4, 2017

Thanks for your feedback! I'll release a new version today.

@nlemoine nlemoine closed this as completed May 4, 2017
@violllettta
Copy link

violllettta commented Feb 12, 2021

Hi there,

Is it possible to use code snippets to apply your conditionalerizer to another custom field (that currently doesn't allow itself to be selected for conditional logic), specifically user_role:

Here in github: https://github.com/danielpataki/ACF-Role-Selector
Plugin: https://wordpress.org/support/plugin/acf-role-selector-field/

Thank you!
Violet

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