I have a partial for inserting images that has a toggle for adding a link. When the partial is added as usual everything works fine, but when I add the partial to a replicator field set it no longer works and all fields are shown.

Here is the Partial yaml file

sections:
  main:
    display: Main
    fields:
      image:
        container: main-assets
        folder: /
        restrict: false
        max_files: 1
        mode: grid
        type: assets
        display: Image
      link:
        type: toggle
        display: Link
      link_url:
        type: text
        display: 'Link Url'
        width: 75
        show_when:
          link: true
      new_window:
        type: toggle
        instructions: 'Enable to open in a new window/tab'
        display: 'New Window'
        width: 25
        show_when:
          link: true
taxonomies: false
title: 'Image Links'
Answered by Jason Varga! Go to answer.