Source: https://rox.chat/kb/pt/control-panel/buttons-and-locations/settings-main.html

> This section of the Buttons and Locations settings item contains the key settings required for each location:

# "Main Settings" Section

This section of the **Buttons and Locations** settings item contains the key settings required for each location:

  * **Visitor should choose department before chat**: this setting determines whether the visitor should select a department before starting a chat. Three possible options are available: *Not Necessary*, *Mandatory*, and *Automatically set department by geo information*. If the last option is selected, the department will be automatically selected for the visitor based on his/her location.

  * **Chat button is for department**: this option determines to which department the appeal sent through the current location will be routed if **Visitor should choose department before chat** is set to *Not Necessary*.

  * **Available for selection by the visitor departments**: this parameter defines the list of selectable departments to which a request sent via the current location can be sent, in case **Visitor should choose department before chat** was set to *Mandatory*.

    !!! Warning "Important!"
        In case you decide to add to this list a department that is hidden for visitors (for more information about hidden departments [see here](https://rox.chat/kb/pt/for-admins/dept.html), this will have no effect - hidden departments will not be displayed to the visitor in the department selection menu.

## HTML Code

This block contains the HTML code of the button, which you need to embed on the pages of your site for the service to work.

![ ](https://rox.chat/kb/pt/img/control-panel/buttons-and-locations/settings-main/overview.webp)
