Skip to content

What to do when form values are not cleared properly when rendering forms in dialogs? ​

This guide demonstrates how to render forms in dialogs using FormCreate, including form configuration, validation, and submission handling.

Explanation

  • Trigger Dialog: Click the "Open Form Dialog" button to set showDialog to true, which displays the dialog.

  • Form Rules: rules define form fields and validation rules. Form rule copies are generated using the FormCreate.copyRules method and applied when the dialog opens.

  • Form Configuration: formOptions configure form options, such as hiding default submit and reset buttons. forceCoverValue ensures form values are overwritten.

FormCreate is an open-source project released under the MIT License. Free for personal and commercial use.