Support

Account

Home Forums General Issues Custom field type + Conditional logic

Solved

Custom field type + Conditional logic

  • I have created a custom field type based on the new field type template:
    https://github.com/AdvancedCustomFields/acf-field-type-template

    What do I need to do for my custom field type to be able to be used as conditional logic for other fields? When I try to show another acf field based on if my custom field has any value I can’t even choose it in the list. Any field that is using my custom field type is grayed out in the list of conditional logic fields.

    Conditional Logic

  • 15 minutes after posting I figured it out…

    It’s added with javascript:
    acf.registerConditionForFieldType('hasValue', 'custom_field_type_name_here');

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.