We want to create dynamic forms for our smart actions.
In our case we add/remove fields based on a boolean. We are having a problem while validating the form.
Observed behavior
The fields we add are required when present. After removing them, for forest, these fields are still required.
Expected behavior
After deletion, the fields should no longer be required.