Metadata fields
Metadata fields
A metadata template field describes a specific
piece of data within a metadata template. For example, the ID of an invoice
might be represented as an id
field on an invoiceData
template.
Every metadata template contains a list of field
objects, and each field is of
one of the following types:
string | A text field |
float | A numeric input field |
date | A date picker field |
enum | A dropdown list for selecting a single value |
multiSelect | A dropdown list for selecting multiple values |
Basic field types
The basic field types are a string
for a text field, float
for a numeric
field, and date
for a date-time picker field.
Lists field types
Additionally, metadata templates support two field types to represent dropdown
lists. An enum
field represents a list of predefined items that a user can
select, while a multiSelect
field represents a list of items where the user
can select more than one value.