Creating details fields
In fields directory customize the .json files
fields directory customize the .json filesEach .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.
Example fields file (name.json):
name.json):{
"key": "name",
"type": "text",
"label": "Name",
"placeholder": "Common name of this place"
}Example fields file (sample-type.json):
sample-type.json):{
"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 updated