"<p>This example shows the use of the <strong>dependencies</strong> option, where you can have a field depend on the value of another field.</p><p>This works by creating all dependant element and then hide/show the selected one. So this feature works best if fields are placed vertically.</p>"
options
grid_columns
12
category
options
control
config
align
"left"
title
"Category"
type
"string"
enum
"Chocolates"
"Vegetables"
"Icecreams"
subcategory1
title
"Subcategory"
type
"string"
enum
"Dark chocolate"
"Milk chocolate"
"White chocolate"
"Gianduja chocolate"
options
control
config
align
"left"
dependencies
category
"Chocolates"
grid_columns
12
subcategory2
title
"Subcategory"
type
"string"
enum
"Broccoli"
"Cabbage"
"Carrot"
"Tomato"
options
dependencies
category
"Vegetables"
control
config
align
"left"
grid_columns
12
subcategory3
title
"Subcategory"
type
"string"
enum
"Frozen yogurt"
"Booza"
"Ice milk"
options
control
config
align
"left"
dependencies
category
"Icecreams"
grid_columns
12
_text2
title
"Using Checkbox"
type
"string"
format
"hidden"
description
"<p>You can also use boolean checkbox with dependencies.</p>"