form icon indicating copy to clipboard operation
form copied to clipboard

Is it possible to use getFieldDecorator() without showing validation message

Open 1443658 opened this issue 6 years ago • 0 comments

I want to use getFieldDecorator() to help validating my form item but don't want any error message show up when validation fails. Is there a way to achieve this?

I have tried to set message as an empty string but seems that the function has a default validation message when message is not supplied or empty.

getFieldDecorator('testField', {rules: [{ required: true, message: '' }],}

Thanks.

1443658 avatar Apr 23 '19 03:04 1443658