Support

Account

Home Forums General Issues Custom conditional logic in fields

Solved

Custom conditional logic in fields

  • Hello, I’m trying to find an ACF filter that allows adding custom conditional logic to fields. More specifically, for global fields.

    I would like to populate the dropdown under ‘Show this field if’ with custom keys and the respective possible values dropdown.

    For example, I would like to have a ‘Logged In’ option in the dropdown with values ‘Yes’ / ‘No’ so that the respective field would only appear if user was logged in or not.

    This is just an example, since what I want to know is how I can add any custom conditional logic to fields.

    Thanks!

  • Hi @sebet

    The conditional logic is designed to be working based on the toggle fields such as select, checkbox, true/false, and radio fields.

    If you want additional options, you can always create custom settings for the fields. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/adding-custom-settings-fields/.

    I hope this helps 🙂

  • Thank you, James! It helped.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Custom conditional logic in fields’ is closed to new replies.