Fields have additional attributes available for us to define their behavior.
These are the generally available attributes, usually used as keyword arguments:
- string is the field's default label, to be used in the user interface. Except for Selection and Relational fields, it is the first positional argument, so most of the time it is not used as a keyword argument. If not provided, it is automatically generated from the field name.
- default sets a default value for the field. It can be a specific value (such as the default=True in the active field), or a callable reference, either a named function or an anonymous function.
- help provides the text for tool tips displayed to users when they hover their mouse over the ...