> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Select category

> Select category

This element is a hierarchical drop-down menu that lets you select a ticket category.

## Configuration

| Setting          | Description                                                             |
| :--------------- | :---------------------------------------------------------------------- |
| empty            | Adds "(none)" as a choice                                               |
| onlyLeafCategory | Whether only leaf categories are valid choices                          |
| parentCategory   | The root category of the tree<br />Default is -1                        |
| includeCategory  | Forces a category to be included, even if it was not chosen by the user |

## Functions

### setValue(String id)

Sets the selected category with the given ID.

### toInteger()

Returns the selected category ID as a number.

### toString()

Returns the selected category ID as a string.


## Related topics

- [Company category and category group](/en/lead/admin/add-company-category.md)
- [NSSelectionCategory](/en/automation/crmscript/reference/CRMScript.NetServer.NSSelectionCategory.md)
- [Delete Selection Category](/en/api/reference/restful/rest/list_selectioncategory/delete-selection-category.md)
- [Post Selection Category](/en/api/reference/restful/rest/list_selectioncategory/post-selection-category.md)
- [Get Selection Category](/en/api/reference/restful/rest/list_selectioncategory/get-selection-category.md)
- [Put Selection Category](/en/api/reference/restful/rest/list_selectioncategory/put-selection-category.md)
- [Request categories](/en/request/admin/category/index.md)
