# Conditional Attributes · Custom Fields · Tickets · Admin Portal

Control whether a custom ticket field is shown or hidden according to values in other fields. Configure Conditional Attributes: choose the dependent field, the Visible or Hidden action, the fields that provide conditions, comparison operators and values, and AND/OR rules.

Canonical: https://docs.mintsd.com/docs/mint-service-desk/admin-portal-conditional-attributes
Language: en-GB
Revision: 2a2d39f1e31deba465d9905cd685a5a3416966a588eb6151bba19ba5bc3c7cc9

<a id="element-01a1452e-019b-7d2c-a4e6-fa5214ea4161"></a>

Configure rules that show or hide ticket fields according to other field values.

<a id="element-01a1452e-019b-7da1-a2bf-9c20aa5953fc"></a>

![Conditional Attributes: Configure rules that show or hide ticket fields according to other field values.](https://docs.mintsd.com/api/reader/assets/assets/images/image912.jpg?v=59d79c5d097d961aac4b4c43e184d5efb7ab400680971e222caa40da19115cda)

<a id="element-01a1452e-019b-7b50-aede-424ffcecaab0"></a>

<a id="element-01a1452e-019c-737a-869c-cd0cc6a57ae6"></a>

## Creating a rule

To add a new conditional attribute, you must press ![Add](https://docs.mintsd.com/api/reader/assets/assets/images/image3.png?v=50654a0321a77a3b2271140f1b6a5080d18fbef92f3639b9b83ad57f0fd5735d#element-01a1452e-019b-7b50-aede-424ffcecaab0) button. When the button
is pressed, the user will be taken to the conditional attribute configuration form.

<a id="element-01a1452e-019c-72e8-a564-2af10899a42f"></a>

![To add a new conditional attribute, you must press button. When the button is pressed, the user will be taken to the conditional attribute configuration form.](https://docs.mintsd.com/api/reader/assets/assets/images/image913.png?v=c4dba26fb54f0a65271c4c5b7deaefa8f5b6f9a3415f851a6c2e341a0ffa84a3)

<a id="element-01a1452e-01a1-75a2-aef3-be92d780bee5"></a>

- **Order** - This field specifies the order in which actions should be performed. The conditional attribute with the smaller number will be executed first. This field takes integer values.
- **Name** - This is where the user enters what their configuration should be called.
- **Description** - Here the user can enter a description of the configuration.
- **Stop after match** - When the user checks this box then if the conditional attribute is satisfied then the system will stop there and will not search further.
- **Category** - This is where you select your ticket type.
- **Dependent** - Here you select a dependent field that will appear or disappear depending on the choice made in ‘Action Type’
- **Action Type** - This is where you specify what should happen after matching. There are two options to choose from ‘Visible’ and ‘Hidden’. If the user selects ‘Visible’ then initially the field selected in ‘Dependent’ will be hidden until the conditions specified below are met. The ‘Hidden’ option works exactly the opposite.
- **Matching conditions** - At this point you have a choice of two options ‘And’ and ‘Or’. If you choose the ‘And’ option, all conditions must be met. If you choose the ‘Or’ option, only one condition needs to be met.
- **Dependees** - In this field, you choose which field to take into account when appearing or hiding the field selected in ‘Dependent’.
- **Logic operator** - In this field, you have four options to choose from: ‘Equals’, ‘NotEquals’, ‘Contains’ and ‘NotContains’.

  > - Selecting the ‘Equals’ field means that it must equal ‘Value’.
  > - Selecting the ‘NotEquals’ field means that it must be different from ‘Value’.
  > - Selecting the ‘Contains’ field means it must contain ‘Value’.
  > - Selecting the ‘NotContains’ field means it must not contain ‘Value’.
- **Value** - Here you enter the value that must be met.
- **Stop after match** - If this box is checked and there is more than one condition the system will not search further once one condition is met.

<a id="element-01a1452e-01a2-7f5f-981e-245e3b9eb50f"></a>

### Example

<a id="element-01a1452e-01a2-7f83-b262-8d0f904eb38e"></a>

![Conditional Attributes: Example.](https://docs.mintsd.com/api/reader/assets/assets/images/image914.png?v=88bf5b0d9f3f3a3ac1d13bcfd1e9dffac3c99794edb99906b55fccd235621bf1)

<a id="element-01a1452e-01a3-736f-bdeb-5236b1cad80d"></a>

In this setting, initially the ‘Int’ field is hidden but will appear if the ‘Description’ field is equal to ‘Problem’.

<a id="element-01a1452e-01a3-7127-a3c9-1e9151a27dea"></a>

<a id="element-01a1452e-01a4-7b19-93a7-33177f537065"></a>

If you want to add another condition, you can press ![Add condition](https://docs.mintsd.com/api/reader/assets/assets/images/image915.png?v=3a7aa3ee55a9400b33bb416bd342cac4ab39631359bc27e06c8bf5521417da1a#element-01a1452e-01a3-7127-a3c9-1e9151a27dea) button.

<a id="element-01a1452e-01a4-72fd-bd79-af1a49592fd9"></a>

<a id="element-01a1452e-01a4-7eb3-a15f-e6103d7a1a14"></a>

To complete the configuration process, press ![Save](https://docs.mintsd.com/api/reader/assets/assets/images/image8.png?v=c6dfcae62b1da5a56376cb98f40e0a593d8d731e458977d27180f6380454b49d#element-01a1452e-01a4-72fd-bd79-af1a49592fd9) button.

<a id="element-01a1452e-01a5-7760-a27b-c93a9a9ed5ae"></a>

## Exporting settings

At the top of ‘Custom Fields’ tab you have an option to export settings.

<a id="element-01a1452e-01a5-7484-b0e1-1f9a014281a0"></a>

![Conditional Attributes: At the top of ‘Custom Fields’ tab you have an option to export settings.](https://docs.mintsd.com/api/reader/assets/assets/images/image982.png?v=2745dfc754b33283c156c8dd0b16e7b3959fb8ea2f1ad5b7ee45094a7ef05821)

<a id="element-01a1452e-01a5-7c0e-96ae-93667907d93b"></a>

Export the settings as a csv or xlsx file.

<a id="element-01a1452e-01a6-792a-a493-eb837536589e"></a>

![Conditional Attributes: Export the settings as a csv or xlsx file.](https://docs.mintsd.com/api/reader/assets/assets/images/image985.png?v=02ad0df18879d6f7c6cf6fc956d5b9ebb52ca04c271a4778b3fe5e0c2d54694f)

<a id="element-01a1452e-01a6-79e6-ac59-ad30079aeded"></a>

Use the export to check for accidental deletions or compare the ticket structure before and after a Mint or database update.

<a id="element-01a1452e-01a7-7fb5-bc53-7d47b2668fc0"></a>

<a id="element-01a1452e-01a7-7782-a444-523ea7ec4bd5"></a>

<a id="element-01a1452e-01a7-7281-867a-671e400054b9"></a>

You can easily export settings by clicking ![Export custom fields](https://docs.mintsd.com/api/reader/assets/assets/images/image983.png?v=0a27798112749e97028ac667461a38a7ad07bd3acfe6450a570178478f1cd388#element-01a1452e-01a7-7fb5-bc53-7d47b2668fc0) button to export basic
structure, or by clicking ![Export custom fields rights](https://docs.mintsd.com/api/reader/assets/assets/images/image984.png?v=9afdcfeea60f4324d46ca85f18cf3777f934a02536c7553186bfb165eb7f2077#element-01a1452e-01a7-7782-a444-523ea7ec4bd5) button to export Ticket Type Permissions

