ramp_frontend.forms.MultiCheckboxField

class ramp_frontend.forms.MultiCheckboxField(*args, **kwargs)

A form containing multiple checkboxes.

__init__(label=None, validators=None, coerce=<class 'str'>, choices=None, validate_choice=True, **kwargs)

Construct a new field.

Parameters
  • label – The label of the field.

  • validators – A sequence of validators to call when validate is called.

  • filters – A sequence of filters which are run on input data by process.

  • description – A description for the field, typically used for help text.

  • id – An id to use for the field. A reasonable default is set by the form, and you shouldn’t need to set this manually.

  • default – The default value to assign to the field, if no form or object input is provided. May be a callable.

  • widget – If provided, overrides the widget used to render the field.

  • render_kw (dict) – If provided, a dictionary which provides default keywords that will be given to the widget at render time.

  • name – The HTML name of this field. The default value is the Python attribute name.

  • _form – The form holding this field. It is passed by the form itself during construction. You should never pass this value yourself.

  • _prefix – The prefix to prepend to the form name of this field, passed by the enclosing form during construction.

  • _translations – A translations object providing message translations. Usually passed by the enclosing form during construction. See I18n docs for information on message translations.

  • _meta – If provided, this is the ‘meta’ instance from the form. You usually don’t pass this yourself.

If _form isn’t provided, an UnboundField will be returned instead. Call its bind method with a form instance and a name to construct the field.