I agree we could use a feature like this as well.
For example: You have a form that ask FORM OF PAYMENT: "Credit Card", "Paypal" or "Send me an Invoice".
Based on the Form of Payment display different for section with different questions and do not display the attributes that do not apply and do not take up form space for unnecessary attributes even if they are hidden.
Would make the form much cleaner.