Is it possible to completely hide the department field called Choose a department on the pre-chat form?
You can hide the department field from visitors by using the Departments API end-point with an empty array.
This code prevents visitors from selecting a department. You can still assign a department to a chat request using a trigger or the departments.select function.
For more information, see the articles below: