Skip to content

Commit

Permalink
set defaultValue:"", revert data type from text to number #2661
Browse files Browse the repository at this point in the history
  • Loading branch information
salomon-j committed Sep 15, 2022
1 parent 5829928 commit fa4ee0e
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 62 deletions.
56 changes: 32 additions & 24 deletions forms/esp/ESP PMU or Zone reporting.json
Original file line number Diff line number Diff line change
Expand Up @@ -476,15 +476,16 @@
"name": "grazingPeriods"
},
{
"dataType": "text",
"dataType": "number",
"behaviour": [
{
"type": "enable_and_clear",
"condition": "wasActivityUndertaken == \"Yes\""
}
],
"name": "cost",
"validate": "required"
"validate": "required",
"defaultValue": ""
},
{
"dataType": "text",
Expand Down Expand Up @@ -706,7 +707,7 @@
{
"preLabel": "Total cost of management actions",
"source": "cost",
"type": "number",
"type": "currency",
"width": "50%",
"helpText": "These costs can include, but are not limited to: cost of time taken to move stock or cost to repair fences and infrastructure damaged."
}
Expand Down Expand Up @@ -995,15 +996,16 @@
"name": "nativeSpeciesMonitoring"
},
{
"dataType": "text",
"dataType": "number",
"behaviour": [
{
"type": "enable_and_clear",
"condition": "wasActivityUndertaken == \"Yes\""
}
],
"name": "cost",
"validate": "required"
"validate": "required",
"defaultValue": ""
},
{
"dataType": "text",
Expand Down Expand Up @@ -1144,7 +1146,7 @@
{
"preLabel": "Total cost of management actions",
"source": "cost",
"type": "number",
"type": "currency",
"width": "50%",
"helpText": "These costs can include, but are not limited to: hours steward takes to undertake native herbivore management, ammunition or cost of contractors."
}
Expand Down Expand Up @@ -1281,15 +1283,16 @@
"name": "feralAnimalManagement"
},
{
"dataType": "text",
"dataType": "number",
"behaviour": [
{
"type": "enable_and_clear",
"condition": "wasActivityUndertaken == \"Yes\""
}
],
"name": "cost",
"validate": "required"
"validate": "required",
"defaultValue": ""
},
{
"dataType": "text",
Expand Down Expand Up @@ -1436,7 +1439,7 @@
{
"preLabel": "Total cost of management actions",
"source": "cost",
"type": "number",
"type": "currency",
"width": "50%",
"helpText": "These costs can include, but are not limited to: hours steward takes to undertake native herbivore management, ammunition or cost of contractors."
}
Expand Down Expand Up @@ -1576,15 +1579,16 @@
]
},
{
"dataType": "text",
"dataType": "number",
"behaviour": [
{
"type": "enable_and_clear",
"condition": "wasActivityUndertaken == \"Yes\""
}
],
"name": "cost",
"validate": "required"
"validate": "required",
"defaultValue": ""
},
{
"dataType": "text",
Expand Down Expand Up @@ -1724,7 +1728,7 @@
{
"preLabel": "Total cost of management actions",
"source": "cost",
"type": "number",
"type": "currency",
"width": "50%",
"helpText": "These costs can include, but are not limited to: costs like sprays, equipment, contractors, PPE, hours of work undertaken."
}
Expand Down Expand Up @@ -1844,15 +1848,16 @@
"validate": "required"
},
{
"dataType": "text",
"dataType": "number",
"behaviour": [
{
"type": "enable_and_clear",
"condition": "wasActivityUndertaken == \"Yes\""
}
],
"name": "cost",
"validate": "required"
"validate": "required",
"defaultValue": ""
},
{
"dataType": "text",
Expand Down Expand Up @@ -1965,7 +1970,7 @@
{
"preLabel": "Total cost of management actions",
"source": "cost",
"type": "number",
"type": "currency",
"width": "50%",
"helpText": "These costs can include, but are not limited to: fuel for slashing or time taken to reduce biomass. Do not include cost for grazing is included in Livestock Grazing Management."
}
Expand Down Expand Up @@ -2155,15 +2160,16 @@
"validate": "required"
},
{
"dataType": "text",
"dataType": "number",
"behaviour": [
{
"type": "enable_and_clear",
"condition": "wasActivityUndertaken == \"Yes\""
}
],
"name": "cost",
"validate": "required"
"validate": "required",
"defaultValue": ""
},
{
"dataType": "text",
Expand Down Expand Up @@ -2328,7 +2334,7 @@
{
"preLabel": "Total cost of management actions",
"source": "cost",
"type": "number",
"type": "currency",
"width": "50%",
"helpText": "These costs can include, but are not limited to: Cost of plants and seeds, time taken to plant, plant guards or cost of sourcing plants."
}
Expand Down Expand Up @@ -2426,15 +2432,16 @@
]
},
{
"dataType": "text",
"dataType": "number",
"behaviour": [
{
"type": "enable_and_clear",
"condition": "wasActivityUndertaken == \"Yes\""
}
],
"name": "cost",
"validate": "required"
"validate": "required",
"defaultValue": ""
},
{
"dataType": "text",
Expand Down Expand Up @@ -2576,7 +2583,7 @@
{
"preLabel": "Total cost of management actions",
"source": "cost",
"type": "number",
"type": "currency",
"width": "50%",
"helpText": "These costs can include, but are not limited to: time taken to identify and record observed regeneration or cost of actions taken to improve regeneration."
}
Expand Down Expand Up @@ -2688,15 +2695,16 @@
"name": "otherHabitatFeature"
},
{
"dataType": "text",
"dataType": "number",
"behaviour": [
{
"type": "enable_and_clear",
"condition": "wasActivityUndertaken == \"Yes\""
}
],
"name": "cost",
"validate": "required"
"validate": "required",
"defaultValue": ""
},
{
"dataType": "text",
Expand Down Expand Up @@ -2836,7 +2844,7 @@
{
"preLabel": "Total cost of management actions",
"source": "cost",
"type": "number",
"type": "currency",
"width": "50%",
"helpText": "These costs can include, but are not limited to: time taken to establish habitats, material for habitats or cost of observation time."
}
Expand Down
Loading

0 comments on commit fa4ee0e

Please sign in to comment.