What's your biggest current challenge? Have your say in Community Polls along the right column.

Supported setting types of Shopify.extension.toml

Solved

Supported setting types of Shopify.extension.toml

appaza
Shopify Partner
34 2 3

Hi,
I want to ask about setting types, I see there is no select field
https://shopify.dev/docs/api/checkout-ui-extensions/2024-10/configuration#supported-setting-types 
I want to field like attached screenshot 

Screenshot.png

Collaboration creates new things
Accepted Solution (1)

appaza
Shopify Partner
34 2 3

This is an accepted solution.

[[extensions.settings.fields]]
key = "label_text_size"
type = "single_line_text_field"
name = "Label Text Size"
description = "Enter a label for the upsell"

[[extensions.settings.fields.validations]]
name = "choices"
value = "[\"Default\", \"Heading-small\", \"Heading-medium\", \"Heading-large\", \"Text-small\", \"Text-medium\", \"Text-large\", \"Text-xlarge\"]"


shopify.extension.toml (1).png

Collaboration creates new things

View solution in original post

Replies 3 (3)
appaza
Shopify Partner
34 2 3

This is custom app, you can see https://apps.shopify.com/checkoutplus?show_store_picker=1 this app, I am trying to clone the extension , but I cannot write code for select field

Collaboration creates new things
appaza
Shopify Partner
34 2 3

This is Shopify.extension.toml file

shopify.extension.toml.png

 

Collaboration creates new things

appaza
Shopify Partner
34 2 3

This is an accepted solution.

[[extensions.settings.fields]]
key = "label_text_size"
type = "single_line_text_field"
name = "Label Text Size"
description = "Enter a label for the upsell"

[[extensions.settings.fields.validations]]
name = "choices"
value = "[\"Default\", \"Heading-small\", \"Heading-medium\", \"Heading-large\", \"Text-small\", \"Text-medium\", \"Text-large\", \"Text-xlarge\"]"


shopify.extension.toml (1).png

Collaboration creates new things