Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
enasequence
webin-portal
Commits
3474f628
Commit
3474f628
authored
Sep 21, 2021
by
Rajkumar-D
Browse files
Allowint space in custom field
parent
c939cf9d
Pipeline
#278429
passed with stages
in 4 minutes and 57 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/app/checklist/checklist.component.html
src/app/checklist/checklist.component.html
+3
-2
No files found.
src/app/checklist/checklist.component.html
View file @
3474f628
...
...
@@ -144,10 +144,11 @@
<!-- form for custom field validation. -->
<form
#cf
="
ngForm
"
>
<mat-form-field
class=
"app-field-padding"
>
<!-- Pattern matching alphanumeric characters with "_", "-" and "space" in middle. -->
<input
matInput
placeholder=
"Add custom field"
[(ngModel)]=
"customField"
pattern=
"^[A-Za-z0-9_-]
*
$"
name=
"customField"
#customText
/>
pattern=
"^[
^_-\s][
A-Za-z0-9_-
\s]*[^_-\s
]$"
name=
"customField"
#customText
/>
<mat-error
*ngIf=
"cf.controls['customField']?.errors"
>
Alphanumeric charecters with
_ and -
are allowed.
Alphanumeric charecters with
space, _ and - inbetween
are allowed.
</mat-error>
</mat-form-field>
<mat-icon
class=
" app-primary-color addIcon"
[disabled]=
"cf.invalid"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment