> ## 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.

# Screen choosers

> Screen choosers

A **screen chooser** is a CRMScript that redirects to a custom screen or performs other actions. It can, for example, do calculations before displaying the screen.

The screen choosers are organized in a folder structure based on where in the system they are run from.

## Redirecting

To redirect, call `setVariable("url", String url)` with the new URL you want to redirect **to**. Remember to resend GET/POST variables if needed.

```crmscript theme={null}
setVariable("url", getProgramTicket() + "&action=doScreenDefinition&idString=My_super_screen&entryId=" + getVariable("id"));
```

<Note>
  The actual redirect happens **after the entire script has run**, not when calling `setVariable()`.
</Note>

## Creating a screen chooser

1. Sign in to SuperOffice Service.
2. From the hamburger menu, select **System Design** and then select **ScreenChoosers**.
3. Select the screen you want to redirect **from**.
4. Enter a description (what and why) and set it to enabled.
5. Write your script and click **OK**.

<Tip>
  You can use [URL parameters][1] in your screen chooser.
</Tip>

[1]: ./url-parameters


## Related topics

- [ScreenChoosers](/de/ui/blogic/learn/screen-chooser.md)
- [screen_chooser table](/en/database/tables/screen-chooser.md)
- [Has Screen Chooser](/en/api/reference/restful/rest/customobjectdefinition/has-screen-chooser.md)
- [Enum ScreenChooserType](/en/automation/crmscript/reference/CRMScript.NetServer.ScreenChooserType.md)
