Dynamically display/hide a panel-include

Is there a way to dynamically display/hide a panel-include using an action in a form ?

I have a domain (Network) that can have several config domains. Each config is a domain (config1, config2, etc…) and in the Network I have several M2O fields pointing to these domains.

I would like to display the config1 or the config2 form directly inside the Network form when a selection is changed (if selection == 1, display Config1 form, else display Config2 form). Is it possible ? There is no “name” or “hidden” value for a panel-include.

Thanks for your help

You can put condition on form->panel your including with panel-include.

Thanks, I will try