# Options

Options are adjustments that can be made on top of your selected widget settings.

{% hint style="info" %}
Options apply right before the value is displayed, that's why they are **only available in the display settings** panel.
{% endhint %}

![](https://85223878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOx0Wo3NZjrQrGQthTy6o%2Fuploads%2Fgit-blob-01c333c3caf49e1e43cfb0b66d3b133f8f297083%2FCapture%20d%E2%80%99e%CC%81cran%202020-09-18%20a%CC%80%2017.53.47.png?alt=media)

There are 2 options. Some are available only on specific widgets.

## Alter values

This option allows you modify values fetched from your database before they are displayed on your screen.

![](https://85223878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOx0Wo3NZjrQrGQthTy6o%2Fuploads%2Fgit-blob-314d81cc2dd8d6d7dc91cb48d7a1aa19b68b14fc%2FCapture%20d%E2%80%99e%CC%81cran%202020-09-18%20a%CC%80%2017.55.18.png?alt=media)

This options is best suited for `enum` type fields (since there is a finite number of possible values), but can also be useful for other type fields in specific situations.

## Conditional formatting

This option helps you customize your data's appearance to optimize your users' efficiency dealing with it.

### Auto

This is only available for `enum` type fields. It sets a **random colored badge** for each separate value.

![](https://85223878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOx0Wo3NZjrQrGQthTy6o%2Fuploads%2Fgit-blob-e7e36668372331f52313e41101ae7d2685699c38%2Fimage.png?alt=media)

This is a possible outcome:

![](https://85223878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOx0Wo3NZjrQrGQthTy6o%2Fuploads%2Fgit-blob-eb7014b8f293c22b034c4f9e88715f63f2e99c59%2Fimage.png?alt=media)

### Custom

The "Custom" setup allows you to set **conditional rules** to control how your data is displayed.

#### Add a rule

To add a new rule, click "+ Add a rule" at the bottom. Next, you need to define your condition. Note that condition operators depend on the selected field type.

{% hint style="warning" %}
If 2 conditions are satisfied, only the top one will be applied.
{% endhint %}

![](https://85223878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOx0Wo3NZjrQrGQthTy6o%2Fuploads%2Fgit-blob-b5b3a5c324a128fc5462d3092ad74d258cc8efba%2Fimage.png?alt=media)

It's then up to you to customize how you want the data to be displayed. Change the color by clicking on the colored square. Use the *Sample* for a quick peak at what the outcome will be.

#### Add a default rule

You may also add a default rule, which will apply if no other condition is met:

![](https://85223878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOx0Wo3NZjrQrGQthTy6o%2Fuploads%2Fgit-blob-1c829c01121f4fb1b5999038af3aa018a0deea21%2Fimage.png?alt=media)
