Comment on page
Creating details fields
Each
.json
file in the fields directory needs a key
, type
, label
, and placeholder.
type
can be one of select_multiple
, select_one
, or text
.For
select_one
and select_multiple
fields, you will need to define an array of answer options.
{
"key": "name",
"type": "text",
"label": "Name",
"placeholder": "Common name of this place"
}
{
"key": "sample-type",
"type": "select_one",
"label": "Sample type",
"placeholder": "Select the type of testing",
"options": [
"Meteorological",
"Air",
"Soil",
"Water",
"Mineral",
"Forestry/vegetation",
"Other"
]
}
Last modified 3mo ago