The "visible_if" schema attribute is not supported with schema type "collection", "page"?

Recently, I tried using the visible_if schema attribute with the schema type collection. It works fine in the Shopify Customizer, but it doesn’t seem to work when using the CLI in VS Code. Could you please help me understand why this is happening?

1 Like

Hey @Fenil_Lathiya :waving_hand:, hope all’s well with you. At the moment, I believe this is expecte behaviour.

There’s a bit more info in this thread here: Using visible_if to show/hide resource inputs - #9 by Matthew_Crigger

Here’s the main explanation from our developers in that thread as well:

There are technical reasons why resource inputs can’t work with visible_if right now, but sadly I can’t get into the specifics of what those are. This isn’t a permanent decision - it’s just not on our roadmap right now.

Hope this helps, please let me know if I can clarify anything on our end.