Skip to content

Normalizer can't return array #2049

Closed
Closed
@YodaDaCoda

Description

@YodaDaCoda

The normaliser function requires a string to be returned - an array, such as you get for a multiselect, is not permitted. This seems wrong to me.

I initially started using the normalizer to prevent blank strings from being permitted, but I'd like to be able to properly validate multiselect picklist values too.

Your environment

  • version of jquery-validate: 1.17.0

Expected behaviour

I expect the validator to just use the value that's returned from the normalizer, not attempt to sanity-check it. That's my responsibility.

Actual behaviour

A TypeError is thrown and validation stops.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions