New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Conditions on imported fieldsets

Ondrej Kanderka January 26, 2021 by Ondrej Kanderka

I have problem with conditional import fiedsets. Does anyone know why this example not working?

 - handle: hero_type
    field:
      options:
        image: Image
        video: Video
      display: 'Hero type'
      type: button_group
      icon: button_group
      default: image
      listable: hidden
  - import: figure
      if:
        hero_type: 'equals image'
>>>>>>> Unanswered <<<<<<<
2 Replies
3 Followers