(value, allValues, meta) => any | new Promise: any
As validator you can provide your custom function. This function takes value
, allValues
and meta
as arguments and returns error message when it fails, otherwise it returns undefined. Please see final form validate prop.
Check async documentation for asynchronous validation.