Difference between revisions of "Details Component: Display rules"
(→How To Create A Display Rule) |
(→How To Create A Display Rule) |
||
Line 29: | Line 29: | ||
Now lets see this display rule in action: | Now lets see this display rule in action: | ||
+ | If (Impact is Low and Title contains test) '''OR''' If (Impact is Medium) | ||
<br> When I am creating a new Incident record, the slot '''Impact''' is present. When I change the '''Title''' slot to 'test' and the Impact level to '''Low''', it will not show up on the form: | <br> When I am creating a new Incident record, the slot '''Impact''' is present. When I change the '''Title''' slot to 'test' and the Impact level to '''Low''', it will not show up on the form: | ||
[[File:ExampleDisplayRuleCreatingIncident.mp4|thumb|center|Impact becomes hidden because it was set to 'Low' and Title contained 'test']] | [[File:ExampleDisplayRuleCreatingIncident.mp4|thumb|center|Impact becomes hidden because it was set to 'Low' and Title contained 'test']] |
Revision as of 23:09, 20 August 2021
What Are Display Rules?
- Display rules allow you to conditionally hide, read, and require slots on a details component.
How To Create A Display Rule
First, go to the page or record you have a details component attached.
Then click the Customize Page button at the bottom of your bundles navigation side-bar.
Select details from the list, then select the Edit page attributes button:
A slide-out Edit Details will appear. Here you can see the existing display rules and add new display rules.
Click on the add record button (+ sign), then a new slide-out will open:
Enabling a display rule will default to A Display Rule: Always. Switching it to any other slot will present a conditions input.
As an example, I am only going to show the impact level if it is not low impact:
To build on this condition, click the + sign on the right side of the condition:
Stacking conditions this way will have them be linked by an "and" logic. To make "or" statements, make a new grouping:
Now lets see this display rule in action:
If (Impact is Low and Title contains test) OR If (Impact is Medium)
When I am creating a new Incident record, the slot Impact is present. When I change the Title slot to 'test' and the Impact level to Low, it will not show up on the form:
When I am on an existing Incident record:
Types of Display Rules
- Hidden - Slot is no longer visible on record, but exists on it
- Readonly - Slot is no longer writable to
- Mandatory - Slot is now required to be filled with information (can't be left blank)