AnySubset

AnySubset[{c1,c2,}]

represents an element in an interpreter or form that accepts any subset of the choices ci.

AnySubset[{lab1c1,lab2c2,}]

accepts any subset of the labi, yielding the corresponding ci as results.

AnySubset[EntityClass["type","class"]]

accepts any subset of the entities in the specified entity class.

AnySubset[choices,max]

allows at most max choices to be selected.

AnySubset[choices,{min,max}]

allows at least min and at most max choices to be selected.

Details

Examples

open allclose all

Basic Examples  (2)

Use AnySubset to specify a form field where more than one choice can be selected at the same time:

Use AnySubset in Interpreter to validate lists of inputs:

Scope  (4)

Interpreter will return a Failure object if the list of inputs is incompatible with the choices:

Specify a minimum and maximum number of choices:

AnySubset can be used in FormFunction to generate an appropriate controller:

Specify a TogglerBar:

Specify a ListPicker:

Introduced in 2015
 (10.1)