form
form copied to clipboard
Is it possible to use getFieldDecorator() without showing validation message
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.