Inconsistency in metafield implementations

In the liquid documentation, https://shopify.dev/docs/api/liquid/objects/metafield, it says the valueType json_string is deprecated, and there a quite a few new types can be used. The new types also match the UI for Settings → Custom data → meatfield definitions. But for the Checkout UI extensions, the document, https://shopify.dev/docs/api/checkout-ui-extensions/2023-10/apis/metafields, still shows the old types.

I found if I want to use checkbox for an order metafield, say is_a_gift, I have to convert it to integer, then on the UI for orders in admin, I have to display it as 0/1, The true/false UI is not available for me the choose.

Do you have any better suggestions?

–Jude

Hi Jude,

Thanks for flagging the docs issue - I’ve connected with our team on this.

Regarding the issue with the true/false box - have you created this metafield definition via the API and you’re looking to switch it to a different type?