User text field state

You can use JavaScript to chose webchat text field state: disable, or enable (activated).