For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
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
Solved! Go to the solution
This is an accepted solution.
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.
Same question here. Must be undocumented but no idea how to get it happening.
This is an accepted solution.
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.
Yeah, it worked.
Thanks
Legend.