Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

How defining errorMessage with Custom Validation? #237

@Vic44tu

Description

@Vic44tu

I would like to use Custom Validation and define error Message.
The example given in doc is with async function:
validate={{async: this.validate}}

  1. is it possible to use custom validate function without async call?
  2. is it possible to define simply the errorMessage?
    I tried (in functional component):
    validate={{validate: myValidate, errorMessage: "my error msg"}} but myValidate not called
    validate={{myValidate}} or validate={{validate: myValidate, ...}}; myValidate is called but errorMessage has to be stored and displayed on its own for example with AvFeedback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions