Dependencies

From Wikisphere
Revision as of 07:58, 4 November 2025 by Admin (talk | contribs) (Admin changed the content model of the page JsonSchema:Dependencies from "wikitext" to "JSON")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
title"Dependencies"
type"object"
format"grid"
properties
_text1
title"Dependencies Example"
type"string"
format"hidden"
description"<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_columns12
category
title"Category"
type"string"
enum
"Chocolates"
"Vegetables"
"Icecreams"
subcategory1
title"Subcategory"
type"string"
enum
"Dark chocolate"
"Milk chocolate"
"White chocolate"
"Gianduja chocolate"
options
dependencies
category"Chocolates"
grid_columns12
subcategory2
title"Subcategory"
type"string"
enum
"Broccoli"
"Cabbage"
"Carrot"
"Tomato"
options
dependencies
category"Vegetables"
grid_columns12
subcategory3
title"Subcategory"
type"string"
enum
"Frozen yogurt"
"Booza"
"Ice milk"
options
dependencies
category"Icecreams"
grid_columns12
_text2
title"Using Checkbox"
type"string"
format"hidden"
description"<p>You can also use boolean checkbox with dependencies.</p>"
options
grid_columns12
billing
title"Billing address same as shipping address"
type"boolean"
format"checkbox"
defaultfalse
options
grid_columns12
billingaddress
title"Billing address"
type"string"
options
dependencies
billingfalse
grid_columns12