Skip to content

[Theme Check] Allow visible_if on all input types #963

@andershagbard

Description

@andershagbard

Allow visible_if to be used on all types.

I know that Shopify are explicitly listed the types this property is available on, but reality seems to be that this is supported on all types.

I personally use it on product_list and collection types.

I think the use case is obvious.

ValidSchema is the check that fails.

Example code:

{
  "type": "collection",
  "id": "collection",
  "label": "Collection",
  "visible_if": "{{ block.settings.source_type == 'collection' }}"
},
{
  "type": "product_list",
  "id": "list",
  "label": "Products",
  "visible_if": "{{ block.settings.source_type == 'list' }}"
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions