Different Fields for Online and Offline

Different Fields for Online and Offline

Hello,

When online we would like only to show the message field in the chat window.

When offline, we would like the name and email address fields to show also, and be compulsory.

Is this possible please?

Thanks.