Skip to main content
Skip table of contents

Tree View: Layer Country

I want to display a country list with regions. To do so I create a tree view field that references the country tag box:

CODE
[
	{
		"fieldId": "country",
		"allowRecursion": false,
		"levels": [
			{
				"fieldId": "regions",
				"allowRecursion": true,
				"levels": []
			}
		]
	}
]

image-20250108-132950.png

Then add a channel filter

image-20250108-133434.png

And you have:

image-20250108-133607.png

And you can see if you open the tree the different regions and countries:

image-20250108-133520.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.