How to use dynamic options in section template?

Cristina195
New Member
3 0 2

Hello, I am trying to add some dynamic options in a selector from a dynamic section. Does anybody know if it's possible, in docs is specified that the default attribute can be populated with some information from metatags, but I don't know if it applies to other fields?
https://shopify.dev/themes/architecture/settings#default-values
This is what I am trying to do:
{% schema %}
{
 "name": "Test section",
 "settings": [
 {
 "type":"select",
 "id":"my_selector",
 "label":{"en":"Select numbers"},
 "options": {{shop.metatags.my-domain.selector_options}},
}
{% endschema %}

Replies 0 (0)