Dependencies

From Wikisphere
Revision as of 00:00, 15 January 2001 by 127.0.0.1 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
title"Dependencies"
type"object"
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
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_columns12
subcategory2
title"Subcategory"
type"string"
enum
"Broccoli"
"Cabbage"
"Carrot"
"Tomato"
options
dependencies
category"Vegetables"
control
config
align"left"
grid_columns12
subcategory3
title"Subcategory"
type"string"
enum
"Frozen yogurt"
"Booza"
"Ice milk"
options
control
config
align"left"
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