Method for verifying form control and device
暂无分享,去创建一个
The application discloses a method for verifying a form control and a device; the specific technical proposal comprises the following steps: first, validation rules for verifying the form control are obtained according to type of the form control, the validation rules comprise at least one basic rule; corresponding relation between the obtained validation rules and the form control is established. The verification method comprises the following steps: determining verification toggle conditions of the current operation of a user; obtaining the validation rules corresponding to the form control when the toggle conditions are met; verifying the form control based on the obtained validation rules. With the technical proposal of the invention adopted, validation rules can be flexibly configured in a simple manner, thus improving reusability of the validation rules and simplifying the processes for verifying the form.