I have a dropdown field in the metadata schema editor and I want the options of this dropdown to be populated dynamically from a servlet response. I am following below guide to achieve it. There is a question around my requirement and from the author's answer it seems just pointing the JSON path to the servlet should help achieve it. Has anybody come across this before? Do you know if it works coz I have not been able to achieve it. If i point the JSON path to an nt:file it works.
Using a JSON file with the Dropdown widget on the Metadata Schema | Content Management
Options array from the servlet or in the JSON file
{
"options": [
{
"value": "en-gb",
"text": "English-United Kingdom"
},
{
"value": "en-us",
"text": "English-United States"
},
{
"value": "fr-ca",
"text": "French-Canada"
},
{
"value": "fr-fr",
"text": "French-France"
},
{
"value": "de-de",
"text": "German-Germany"
},
{
"value": "es-mx",
"text": "Spanish-Mexico"
},
{
"value": "es-es",
"text": "Spanish-Spain"
}
]
}
JSON path value - /etc/tags/custom/industries.options.json