What is the Case Key Value module?
The Case Key Value module is a prebuilt component that can be added to a Case Template. It displays JSON data, in grid or table format. You can define logic that governs when it appears.
How do you add a Case Key Value Module?
- Navigate to the Dashboard, and click on Cases > Templates.
- Find and click on the Case template you want to edit, or Create a new template.
- Navigate to the Tab you want to add a Case component to. Click an empty space to view the Component Library.
- In the right toolbar, search for ‘Key Value.’
- Drag and drop the Key Value module into your Case UI and reposition it by dragging it around.
- Click on the Key Value module on the right toolbar you can customize the module.
- Under Settings, you can edit the Title text to change the text displayed on the top of the module.
- Under Data Configuration, you can add the Fields you want to display on the module. Learn more about Data Configuration below.
- Under Display Configuration, you can change how the Key Values are displayed. Learn more about Display Configuration below.
- Under Module Layout, you can change:
- Dynamic height: Module will grow or shrink to fit its contents.
- Visibility: Dynamically control whether the module is hidden. This is a toggle button that lets you set conditions for when the button should be displayed or hidden from view based on your case requirements. You can read more about Visibility configuration below.
- Under Advanced Options > Module Enablement, you can define custom control conditions that determine when the Key Value module is enabled or disabled. Advanced options are typically configured for specific customers by a Persona team member.
- Click the “Delete” button if you want to remove the component from the Case UI.
Data Configuration
Begin typing the Field you want to add into the text box below Field Key.
You can directly edit the code by clicking on the Preview Data code sample. To use this module, you’ll need a Case field with a hash
data type, which you can select in the Field Key configuration. The module will display this data in either table or grid format.
The Preview Data Editor displays the hash structure. Here’s an example using field key = Person_basic_info
:
{
"name_full": "Jonathan Miller",
"name_last": "Miller",
"name_first": "Jonathan",
"birthdate": undefined,
"identification_number": null,
"identification_number_type": null,
"email_address": "jonathan@gmail.com",
"phone_number": null,
"address_country_code": null,
"address_city": null,
"address_subdivision": null,
"address_postal_code": null,
"address_street_1": null,
"address_street_2": null
}
Data Configuration
There are two options for display:
- Grid: This is the default display configuration.
- Table: The table format gives you the option to further customize the module. You can edit the Key and Value Column Labels.
Visibility configuration
If you toggle this on you will have two options to customize visibility.
- Basic visibility allows you to set rules on the Key Value module to determine when it will be visible. You can read more about Basic visibility configuration below.
- Advanced visibility allows you to set logic to control when the Key Value module is enabled or disabled based on custom conditions. Advanced visibility configurations are typically configured for specific customers by a Persona team member.
Basic visibility configuration
Visibility configuration consist of three main components:
- Field: The object that will have a condition linked to it.
- Condition: How the field is compared to the value (e.g., equals, does not equal).
- Value: The value to test against.
Creating Visibility Configuration
- AND Statements: Combine multiple conditions that must all be true for the rule to pass. Add these using the "Add" button.
- OR Groups: Combine conditions where only one needs to be true for the rule to pass. Create these by clicking "Add OR Group".
How to Use Visibility Configuration
- Click on the Key Value module, and go to Module Layout and toggle the button next to Visibility in the right toolbar.
- Click on “Empty rule” to see Visibility configuration.
- Create a logical rule by filling in the three boxes following Show if, which correspond to an object, its condition, and its value being assessed, respectively. When that logical rule passes, the Checklist module is shown.
- (Optional) Add additional logical rules by clicking either ”Add” (if you want to add 'AND' rules, where all must be passed to continue) or ”Or group” (if you can also nest a group of OR statements within an AND statement).
Plans Explained
Case Key Value module component by plan
Startup Program | Essential Plan | Growth Plan | Enterprise Plan | |
---|---|---|---|---|
Case Key Value module component | Limited | Limited | Available | Available |
Advanced options - Module enablement | Limited | Limited | Limited | Available |
Visibility - Advanced configurations | Limited | Limited | Limited | Available |