Using visible_if to show/hide resource inputs

@misha this is a big breaking change. We’ve had to submit a new version of our themes in a hurry as some sections could not be added anymore (and as Kurt explained, if a JSON file such as index.json were referring one of those sections, the whole file won’t upload and generate a 404). Shopify has usually cared a lot about BC, it is surprising that a BC was done (without prior communication to devs) that can cause such issue.

Just to be sure, I can see that image_picker (which is a resource) is still in the list. Can you please therefore confirm that using this (where logo is an image_picker) still supported and won’t be removed?

{
  "type": "range",
  "id": "logo_width",
  "label": "Width",
  "min": 200,
  "max": 300,
  "visible_if": "{{ section.settings.logo }}"
}
3 Likes