TreeSelect JSON Form

Select hierarchical values as a scalar or a unique array.

How this example works

TreeSelect requires x-options hierarchy whose globally unique values cover the string or numeric enum exactly. A scalar field submits one node value; a unique enum array submits independently selected node values, without cascading parent selections to children. Reset restores both defaults.

Read the supported schema guide

TreeSelect example

Department

Current value: 2

Teams

Current value: ["design"]

Submitted JSON

Submit the form to see its JSON.