Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Formly does not process PATTERN validation messages #725

Open
@sarunasBaltuonis

Description

@sarunasBaltuonis

Followed this example http://docs.angular-formly.com/docs/formlyvalidationmessages

app.run.js:

fvm.addTemplateOptionValueMessage('pattern', 'passwordPatternMessage', '', 'IS very invalid',  'Invalid Input');

form field:

key: 'newPassword',
				name: 'newPassword',
				type: 'input',
				templateOptions: {
					type: 'password',
					label: 'new password',
					required: true,
					minlength: 8,
					maxlength: 40,
					pattern: PASSWORD_REGEXP,
					passwordPatternMessage: '"Password should be 8 symbols..."'
				},

Yet in error messages I get

ab8askAlj213 is invalid

All other validator messages work well.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions