Skip to content

Commit

Permalink
Merge pull request #712 from bcgov/feat/SRS-268
Browse files Browse the repository at this point in the history
[SRS-268] Add numeric masks in text field reserved for numbers
  • Loading branch information
nikhila-aot committed Jun 20, 2024
2 parents 314523e + 2af480e commit d04d52f
Show file tree
Hide file tree
Showing 11 changed files with 7,727 additions and 7,719 deletions.
52 changes: 24 additions & 28 deletions forms-flow-ai/epd-forms/Protocol 6 Pre-approval Application.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,8 @@
{
"id": "eb61exn",
"key": "s2-siteIdNumber",
"case": "",
"mask": false,
"type": "textfield",
"type": "number",
"input": true,
"label": "Site ID Number",
"hidden": false,
Expand All @@ -498,20 +497,20 @@
"validate": {
"custom": "",
"unique": false,
"pattern": "",
"multiple": false,
"required": false,
"maxLength": "",
"minLength": "",
"max": "",
"min": "",
"customMessage": "",
"customPrivate": false,
"strictDateValidation": false
"strictDateValidation": false,
"step": "any",
"integer": ""
},
"autofocus": false,
"encrypted": false,
"hideLabel": false,
"inputMask": "",
"inputType": "text",
"modalEdit": false,
"protected": false,
"refreshOn": "",
Expand All @@ -520,7 +519,8 @@
"errorLabel": "",
"persistent": true,
"properties": {},
"spellcheck": true,
"delimiter": false,
"requireDecimal": false,
"validateOn": "change",
"clearOnHide": true,
"conditional": {
Expand Down Expand Up @@ -2840,7 +2840,7 @@
"id": "exghhml",
"key": "s3-simplephonenumber",
"mask": false,
"type": "phoneNumber",
"type": "textfield",
"input": true,
"label": "Phone Number",
"hidden": false,
Expand All @@ -2866,21 +2866,20 @@
"validate": {
"custom": "",
"unique": false,
"pattern": "",
"pattern": "^\\+?[0-9\\-().\\s]{10,17}$",
"multiple": false,
"required": true,
"maxLength": "",
"minLength": "",
"customMessage": "",
"customMessage": "Please enter a valid phone number",
"customPrivate": false,
"strictDateValidation": false
},
"autofocus": false,
"encrypted": false,
"hideLabel": false,
"inputMask": "",
"inputMode": "decimal",
"inputType": "tel",
"inputType": "text",
"modalEdit": false,
"protected": false,
"refreshOn": "",
Expand Down Expand Up @@ -3900,7 +3899,7 @@
"id": "eknlm2f",
"key": "s4-simplephonenumber",
"mask": false,
"type": "phoneNumber",
"type": "textfield",
"input": true,
"label": "Phone Number",
"hidden": false,
Expand All @@ -3926,21 +3925,20 @@
"validate": {
"custom": "",
"unique": false,
"pattern": "",
"pattern": "^\\+?[0-9\\-().\\s]{10,17}$",
"multiple": false,
"required": true,
"maxLength": "",
"minLength": "",
"customMessage": "",
"customMessage": "Please enter a valid phone number",
"customPrivate": false,
"strictDateValidation": false
},
"autofocus": false,
"encrypted": false,
"hideLabel": false,
"inputMask": "",
"inputMode": "decimal",
"inputType": "tel",
"inputType": "text",
"modalEdit": false,
"protected": false,
"refreshOn": "",
Expand Down Expand Up @@ -4995,7 +4993,7 @@
"id": "e6uy0ch",
"key": "s5-simplephonenumber",
"mask": false,
"type": "phoneNumber",
"type": "textfield",
"input": true,
"label": "Phone Number",
"hidden": false,
Expand All @@ -5021,21 +5019,20 @@
"validate": {
"custom": "",
"unique": false,
"pattern": "",
"pattern": "^\\+?[0-9\\-().\\s]{10,17}$",
"multiple": false,
"required": true,
"maxLength": "",
"minLength": "",
"customMessage": "",
"customMessage": "Please enter a valid phone number",
"customPrivate": false,
"strictDateValidation": false
},
"autofocus": false,
"encrypted": false,
"hideLabel": false,
"inputMask": "",
"inputMode": "decimal",
"inputType": "tel",
"inputType": "text",
"modalEdit": false,
"protected": false,
"refreshOn": "",
Expand Down Expand Up @@ -6211,7 +6208,7 @@
"validateOn": "change",
"validate": {
"required": true,
"customMessage": "",
"customMessage": "Please enter a valid phone number",
"custom": "",
"customPrivate": false,
"json": "",
Expand All @@ -6220,7 +6217,7 @@
"unique": false,
"minLength": "",
"maxLength": "",
"pattern": ""
"pattern": "^\\+?[0-9\\-().\\s]{10,17}$"
},
"unique": false,
"errorLabel": "",
Expand All @@ -6245,16 +6242,15 @@
"width": "",
"height": ""
},
"type": "phoneNumber",
"type": "textfield",
"input": true,
"hideOnChildrenHidden": false,
"refreshOn": "",
"dataGridLabel": false,
"showCharCount": false,
"showWordCount": false,
"addons": [],
"inputType": "tel",
"inputMode": "decimal",
"inputType": "text",
"id": "e2825g",
"defaultValue": ""
}
Expand Down
24 changes: 12 additions & 12 deletions forms-flow-ai/epd-forms/Site Disclosure Statements.json
Original file line number Diff line number Diff line change
Expand Up @@ -5536,7 +5536,7 @@
"label": "Site ID",
"tableView": true,
"key": "siteId",
"type": "textfield",
"type": "number",
"input": true,
"placeholder": "",
"prefix": "",
Expand Down Expand Up @@ -5577,9 +5577,10 @@
"strictDateValidation": false,
"multiple": false,
"unique": false,
"minLength": "",
"maxLength": "",
"pattern": ""
"min": "",
"max": "",
"step": "any",
"integer": ""
},
"conditional": {
"show": null,
Expand All @@ -5601,11 +5602,11 @@
"allowMultipleMasks": false,
"addons": [],
"mask": false,
"inputType": "text",
"delimiter": false,
"requireDecimal": false,
"inputFormat": "plain",
"inputMask": "",
"displayMask": "",
"spellcheck": true,
"truncateMultipleSpaces": false,
"id": "e18b1p9"
},
Expand Down Expand Up @@ -11421,7 +11422,7 @@
"widget": {
"type": "input"
},
"inputMask": "(999) 999-9999",
"inputMask": "",
"displayMask": "",
"allowMultipleMasks": false,
"customClass": "",
Expand Down Expand Up @@ -11452,7 +11453,7 @@
"validateOn": "change",
"validate": {
"required": false,
"customMessage": "",
"customMessage": "Please enter a valid phone number",
"custom": "",
"customPrivate": false,
"json": "",
Expand All @@ -11461,7 +11462,7 @@
"unique": false,
"minLength": "",
"maxLength": "",
"pattern": ""
"pattern": "^\\+?[0-9\\-().\\s]{10,17}$"
},
"unique": false,
"errorLabel": "",
Expand All @@ -11488,16 +11489,15 @@
"width": "",
"height": ""
},
"type": "phoneNumber",
"type": "textfield",
"input": true,
"hideOnChildrenHidden": false,
"refreshOn": "",
"dataGridLabel": false,
"showCharCount": false,
"showWordCount": false,
"addons": [],
"inputType": "tel",
"inputMode": "decimal",
"inputType": "text",
"id": "e9n4kfn",
"defaultValue": "",
"inputMaskPlaceholderChar": ""
Expand Down
Loading

0 comments on commit d04d52f

Please sign in to comment.