Checkout UI Extension Configuration: Add field type dropdown in admin

Hi,

I know that, using configuration settings to add fields available in checkout components.
But, how can we add field type=> dropdown/choice?
I saw someone added this but in shopify documentation its not there.
https://shopify.dev/docs/api/checkout-ui-extensions/2024-04/configuration#supported-setting-types

Regards

2 Likes

Same question here. Must be undocumented but no idea how to get it happening.

Hi, I don’t know if its still useful, here is what I used.
I added this code is shopify.extension.toml file for the extension settings:
Example code:
[[extensions.settings.fields]]
key = “banner_title_limited”
type = “single_line_text_field”
name = “Banner title”
description = “Enter a title for the banner.”
[[extensions.settings.fields.validations]]
name = “choices”
value = “["red", "white", "black"]”

I hope this’ll help you.

1 Like

Yeah, it worked.
Thanks

Legend.