Manage field states using FORM API state property and apply conditional fields programmatically.