Cms: Revealer inside a grid inside a Bard doesn't hide fields

Created on 24 Jan 2020  Â·  4Comments  Â·  Source: statamic/cms

I have an "Add overlay" revealer, with 2 text fields that I want to show when "add_overlay" is true:

image

This is the Yaml:

                -
                  handle: add_overlay
                  field:
                    type: revealer
                    localizable: false
                    listable: false
                    display: 'Add overlay'
                -
                  handle: overlay_image
                  field:
                    container: assets
                    mode: list
                    restrict: false
                    allow_uploads: true
                    max_files: 1
                    type: assets
                    localizable: false
                    width: 50
                    listable: hidden
                    display: 'Overlay image'
                    show_when:
                      add_overlay: true
                -
                  handle: overlayText
                  field:
                    type: textarea
                    localizable: false
                    listable: false
                    display: 'Overlay Text'
                    show_when:
                      add_overlay: true

All this is inside a Grid, inside a Set of a Bard field

bug fieldtypes

All 4 comments

This issue has not had recent activity and has been marked as stale — by me, a robot. Simply reply to keep it open and send me away. If you do nothing, I will close it in a week. I have no feelings, so whatever you do is fine by me.

Still needs fixin' 😉

Confirmed. @riasvdv Do you think this issue could be related to #1702 or is that completely different?

I don't think they're related, as revealer is mostly a front-end thingy and validation happens on the backend

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jelleroorda picture jelleroorda  Â·  3Comments

aerni picture aerni  Â·  3Comments

wm-simon picture wm-simon  Â·  3Comments

robdekort picture robdekort  Â·  3Comments

philippgrimm picture philippgrimm  Â·  3Comments