How can I do to display a certain widget in a form only if a specific condition is met?

 

Depending on the value of a drop-down menu in the form, another widget should be displayed or not,

dynamically, not only when the form is first presented.

 

Thanks