--- order: 3.2 version: 4.17.0 title: zh-CN: 非阻塞校验 en-US: No block rule --- ## zh-CN `rule` 添加 `warningOnly` 后校验不再阻塞表单提交。 ## en-US `rule` with `warningOnly` will not block form submit. ```tsx import { Button, Form, Input, message, Space } from 'antd'; import React from 'react'; const App: React.FC = () => { const [form] = Form.useForm(); const onFinish = () => { message.success('Submit success!'); }; const onFinishFailed = () => { message.error('Submit failed!'); }; const onFill = () => { form.setFieldsValue({ url: 'https://taobao.com/', }); }; return (
); }; export default App; ```