> ## 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 Time Span

> Select Time Span

This element adds a text input encoding the time-span in a string and a popup that lets you select time-spans with drop-down menus for hours, minutes, and so on.

## Configuration

The time-spans that can be selected are set to true in the config.

| Setting         | Description                                                                   |
| :-------------- | :---------------------------------------------------------------------------- |
| days            | Whether to add a drop-down for days                                           |
| hours           | Whether to add a drop-down for hours                                          |
| minutes         | Whether to add a drop-down for minutes                                        |
| seconds         | Whether to add a drop-down for seconds                                        |
| empty           | Whether the field is required (Bool)                                          |
| negatives       | Whether negative increments are allowed                                       |
| enableStartStop | Whether the element can be started and stopped (and count seconds if started) |
| returnMinutes   | Whether `toInteger()` returns minutes or seconds (default)                    |
| maxNum          | The upper limit of the time-span                                              |
| minJumps        | The smallest increment of the time-span                                       |

## Example

```crmscript theme={null}
days = false
hours = true
minutes = true
seconds = false

negatives = true

maxNum = 24
minJumps = 15
```

This configuration adds a set of drop-down menus to select hours and minutes for the time-span. The user can select up to 24 hours and minutes in 15-minute increments.


## Related topics

- [Void](/en/automation/crmscript/reference/CRMScript.Global.Void.md)
- [TimeSpan](/en/automation/crmscript/reference/CRMScript.Native.TimeSpan.md)
- [NSFieldInfoTimeSpan](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoTimeSpan.md)
- [SuperOffice.WebApi.Data.FieldInfoTimeSpan](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoTimeSpan.md)
- [TicketSelection](/en/api/archive-providers/reference/ticketselection.md)
- [TicketDynamicSelection](/en/api/archive-providers/reference/ticketdynamicselection.md)
- [TicketSelectionCombined](/en/api/archive-providers/reference/ticketselectioncombined.md)
