Using scenario in views?

Is there a way to use a models scenario in a forms view to decide which form elements should appear or not?

would like to know too…

i use this

http://www.yiiframework.com/doc/api/CModel#isAttributeSafe

http://www.yiiframework.com/doc/api/CModel#getSafeAttributeNames-detail

Thanks. That should do the trick.