Skip to content

Commit

Permalink
Merge pull request #512 from bcgov/fix-forms-lat-long-seconds
Browse files Browse the repository at this point in the history
fixed seconds validation for all forms
  • Loading branch information
nikhila-aot authored Sep 18, 2023
2 parents e29aa9a + aca250d commit 8600150
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 65 deletions.
14 changes: 7 additions & 7 deletions forms-flow-ai/epd-forms/Site Disclosure Statements.json
Original file line number Diff line number Diff line change
Expand Up @@ -5609,7 +5609,7 @@
"required": true,
"pattern": "",
"customMessage": "",
"custom": "if(/^[0-9]+$/.test(input) && input>= 0 && input<= 60){\n\tvalid=true;\n}else{\n\tvalid = \"Invalid Seconds\";\n}",
"custom": "if (/^\\d+(\\.\\d+)?$/.test(input) && parseFloat(input) >= 0 && parseFloat(input) <= 60) {\r\n valid = true;\r\n} else {\r\n valid = \"Invalid Seconds\";\r\n}",
"customPrivate": false,
"json": "",
"minLength": "",
Expand Down Expand Up @@ -5648,7 +5648,7 @@
"dataGridLabel": false,
"addons": [],
"inputType": "text",
"id": "ebv35tq",
"id": "ew89x5z",
"defaultValue": ""
}
],
Expand Down Expand Up @@ -6043,7 +6043,7 @@
"required": true,
"pattern": "",
"customMessage": "",
"custom": "if(/^[0-9]+$/.test(input) && input>= 0 && input<= 60){\n\tvalid=true;\n}else{\n\tvalid = \"Invalid Seconds\";\n}",
"custom": "if (/^\\d+(\\.\\d+)?$/.test(input) && parseFloat(input) >= 0 && parseFloat(input) <= 60) {\r\n valid = true;\r\n} else {\r\n valid = \"Invalid Seconds\";\r\n}",
"customPrivate": false,
"json": "",
"minLength": "",
Expand Down Expand Up @@ -6082,7 +6082,7 @@
"dataGridLabel": false,
"addons": [],
"inputType": "text",
"id": "ekznlvi",
"id": "euqfrcp",
"defaultValue": ""
}
],
Expand Down Expand Up @@ -6990,7 +6990,7 @@
}
],
"collapsible": false,
"id": "e7nge5b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "e7nge5b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
Expand Down Expand Up @@ -7464,7 +7464,7 @@
}
],
"collapsible": false,
"id": "eapos7600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "eapos76000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
Expand Down Expand Up @@ -7680,7 +7680,7 @@
"input": true,
"label": "Crown Land File Numbers",
"tableView": true,
"id": "e7fs5c500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "e7fs5c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
Expand Down
14 changes: 7 additions & 7 deletions forms-flow-ai/epd-forms/Site Risk Classification Report.json
Original file line number Diff line number Diff line change
Expand Up @@ -2567,7 +2567,7 @@
"required": true,
"pattern": "",
"customMessage": "",
"custom": "\nif(/^[0-9]+$/.test(input) && input>= 0 && input<= 60){\n\tvalid=true;\n}else{\n\tvalid = \"Invalid Seconds\";\n}\n\n",
"custom": "if (/^\\d+(\\.\\d+)?$/.test(input) && parseFloat(input) >= 0 && parseFloat(input) <= 60) {\r\n valid = true;\r\n} else {\r\n valid = \"Invalid Seconds\";\r\n}",
"customPrivate": false,
"json": "",
"minLength": "",
Expand Down Expand Up @@ -2606,7 +2606,7 @@
"dataGridLabel": false,
"addons": [],
"inputType": "text",
"id": "etapk56",
"id": "e3rcr2",
"defaultValue": ""
}
],
Expand Down Expand Up @@ -3009,7 +3009,7 @@
"required": true,
"pattern": "",
"customMessage": "",
"custom": "\nif(/^[0-9]+$/.test(input) && input>= 0 && input<= 60){\n\tvalid=true;\n}else{\n\tvalid = \"Invalid Seconds\";\n}\n\n",
"custom": "if (/^\\d+(\\.\\d+)?$/.test(input) && parseFloat(input) >= 0 && parseFloat(input) <= 60) {\r\n valid = true;\r\n} else {\r\n valid = \"Invalid Seconds\";\r\n}",
"customPrivate": false,
"json": "",
"minLength": "",
Expand Down Expand Up @@ -3048,7 +3048,7 @@
"dataGridLabel": false,
"addons": [],
"inputType": "text",
"id": "e17l0b",
"id": "epmcuor",
"defaultValue": ""
}
],
Expand Down Expand Up @@ -3649,7 +3649,7 @@
"attributes": {},
"components": [
{
"id": "ele95t000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "ele95t000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "spropertyOwnerAndOrOperator",
"tree": false,
"type": "panel",
Expand Down Expand Up @@ -13059,7 +13059,7 @@
"attributes": {},
"components": [
{
"id": "eks0gu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "eks0gu00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "exposurePathwayQuestionnaireAffectedParcel",
"tree": false,
"type": "panel",
Expand Down Expand Up @@ -17002,7 +17002,7 @@
}
],
"collapsible": false,
"id": "eo5mwyp000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "eo5mwyp000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"placeholder": "",
"prefix": "",
"customClass": "",
Expand Down
Loading

0 comments on commit 8600150

Please sign in to comment.