Populate Select options dynamically from external source

Populate Select options dynamically from external source

Amit2023
Shopify Partner
1 0 0

Is there any way I can populate Select Options ( under schema>settings ) dynamically from external source in app extension ?

 

{% schema %}
{
"name": "test-field",
"target": "section",
"class": "testClass",
"tag": "section",
"settings": [
{
"type": "select",
"id": "test_id",
"label": "Test Field",
"info": "An option for informational text about the test field",
"options":
[
{
"value": "test_value_1",
"label": "Test Value 1"
},
{
"value": "test_value_2",
"label": "Test Value 2"
},
{
"value": "test_value_3",
"label": "Test Value 3"
}
]
},
{ "type": "color", "id": "colour", "label": "Star Colour", "default": "#000" }
]
}
{% endschema %}
Replies 0 (0)