Editing custom metafield definitions

If you use custom metafield definitions, then you can make changes to the following information:

  • metafield name
  • description
  • validation rules

You might want to edit a custom metafield definition for the following reasons:

  • to change the metafield name or description that's displayed on the corresponding pages in your Shopify admin
  • to update the range of values that the metafield supports

For example, you might have a custom metafield definition that uses the number typeintegerand supports values between 1 and 5. If you want to add a value of 8 to the corresponding metafield on your product pages, then you need to edit the validation rules to increase the maximum value to 8.

Edit a custom metafield definition

  1. From your Shopify admin, go toSettings>Custom data.
  2. Select the part of your store that you want to edit a metafield for. For example,Products.
  3. Click the metafield that you want to edit.
  4. Optional: In theNamefield, edit the name for your definition.
  5. Optional: In theDescriptionfield, enter a new description for your metafield values.
  6. Optional: To allow apps, custom storefronts, and channels to access values for this metafield, selectGive access to Storefront API requests.
  7. Optional: In theValidationsection, configure theAdditional rulesto change the range of accepted values.
  8. Optional: Change whether the metafield is displayed on the corresponding pages in your Shopify admin by doing one of the following:
    • To hide the metafield, clickDefinition pinned.
    • To display the metafield, clickPin definition.
  9. ClickSave.

Ready to start selling with Shopify?

Try it free