Clearing Multiple components text field-Refactoring

Here is a pattern you could use: Enabling/disabling all components in a form - #3 by stucork

If these are all in the same container, another way is to use that container’s get_components() method.