Skip to content

Validation messages code don't match the tv4 list. #541

Open
@franciscopuyo

Description

@franciscopuyo

I don't know if I'm doing things wrong but, trying to configure validation messages I've noticed the error codes returned are not the correct ones:

<form name="exeParams" sf-options="{ validationMessage: {
            302: 'Requireddd',
            0: 'aklsdjalksjd',
            202: 'asjkdlasjdlk',
            201: 'loongg',
            200: 'Shoorrt'
      }
}" sf-schema="schema" sf-form="form" sf-model="schemaModel"></form>

Only show the default required error message.

If I set

<form name="exeParams" sf-options="{ validationMessage: {
            required: 'Requireddd',
            0: 'aklsdjalksjd',
            202: 'asjkdlasjdlk',
            201: 'loongg',
            200: 'Shoorrt'
      }
}" sf-schema="schema" sf-form="form" sf-model="schemaModel"></form>

It does show "Requireddd". I tried setting the validationMessage attribute into form variable array items and the same happens

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions