[FR] Read Only Fields in a Read/Write Metaobject

Would be great to be able to have an option to set a field as ‘Read Only’ within a metaobject, that is only editable via API.

Use Case:

  • We sometimes need to add a value to a specific field in a metaobject entry.
  • The actual metaobject entry is created by the merchant in the normal way, so we can’t lock the entire metaobject down to be written to / updated via an app only.
  • We just want to restrict them from updating a chosen field within that metaobject entry.

Ideal Scenario:

  • Updates via API to that field are allowed
  • Editing that specific field within the normal Metaobject UI is not allowed

Appreciate this is kind of hybrid between App only metafields/metaobjects and normal ones.

Hey Lewis, sorry for the delay. Thanks for the use cases! This is an interesting idea.

I don’t suppose a multi-metaobject setup could also accomplish this? One read-only, and one the merchant manages?

Hey @James_Lunan - Potentially, although in that case, the field in Metaobject A (Merchant editable) that would reference the App owned Metaobject would still be merchant editable no, because I can’t make a specific field in a metaobject readonly? So they could detach the app owned metafield in that case, which would be an issue.

Whereas having a read only setting for individual fields would stop that from happening.