When the condition is false, for the given name or names, clears the corresponding field value, sets the
validation status to "Success", clears any validation errors, and clears the id of the field in the form state. This
allows for form submission without passing validation on the conditionally rendered field(s).
For handling validation of form fields that are not rendered, see useInternalField, which does not alter
field values.
Handles cleanup of conditionally rendered fields.
When the
conditionisfalse, for the givennameornames, clears the corresponding field value, sets the validation status to "Success", clears any validation errors, and clears the id of the field in the form state. This allows for form submission without passing validation on the conditionally rendered field(s).For handling validation of form fields that are not rendered, see useInternalField, which does not alter field values.