Hide a metafield's input field on backend via product type

Hello, I have created some custom product metafields but all metafield input fields will show up on every product. Is it possible to only show certain metafields for certain products (and hide them for others)? See image below. I’m thinking this may be possible with liquid, but I just don’t know the code/logic. It’s important to hide the field itself on the backend, rather than just hiding if from the frontend. Thank you!

Hi Sg,

You could hide this on a Shopify theme with some Liquid conditional tags like:

{% unless product.type == "fine_gem" %}
  {{ product.namespace.key.value }}
{% endunless %}

but it will still appear on the backend/ store admin. There’s currently no way to conditionally turn off display on the admin based on product type - but I’ve raised this as a feature improvement with the custom data team.