Conditionally showing fields / sections

There are some addons for JSD cloud which shows custom fields in raising an issue in agent view as well as customer view. e.g. Proforma, extensions for JSD

How can such a functionality achieved via development. Any hints / directions plz