Condition based field rendering in admin panel

Thank you for your response, but my requirement is that, I have one field that is Boolean if it is true then i want to show the text field in ui and if it is false then i want to show the rich text field. Is it possible to achieve this?