Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This field is made to display boolean values in the UI. You can configure the display_true and display_false fields to select the way you want the field to be displayed on either cases.

BoolField

ParameterTypeDefaultRequiredDescription
display_truestr'True'FalseDefault value for True.
display_falsestr'False'FalseDefault value for False.

...

ParameterTypeDefaultRequiredDescription
typeDynamicFieldTypeBOOLTrueType of the dynamic field.
bool_valueboolFalseFalseBoolean value for the field.


Configuration Example

Code Block
languagepy
themeDJango
BoolField(label='Movie Classification', field='data.adult', display_true='Adult only', display_false='Familiar')