This tutorial explains,
1. How to write event handler for dialog field.
2. How to write change event handler for dropdown.
3. How to hide and show container/dialog fields on dropdown item change.
4. How to write generic event handler for dropdown to hide show dialog fields.