# $markedIf()
- Highlighted fields
This keyword is used when we want to highlight a field. It adds an exclamation mark in bold next to the name of the field.
# Usage:
The field built with this keyword will be highlighted if, at the instance level, the value of the given field is equal to the value assigned in the condition.
$markedIf(field name=value)
The field built with this keyword will be highlighted if, at the instance level, the value of the given field is different to the value assigned in the condition,
$markedIf(field name!=value)
TIP
The exclamation mark is added via a CSS class named marked
which is assigned to the instance field after entering a value that matches the condition given as an argument to $markedIf
.
The most typical scenario for using the $markedIf()
keyword is when we have an instance with several duplicate fields and we want to mark the ones whose values are not what we would expect them to be. Another typical situation is when you want to mark the field if its value is not empty: $markedIf(field name!=)
.
WARNING
Please be aware that the field will only be highlighted after saving any changes made to the instance that meet the condition.
# Examples:
$markedIf(Last Update=2017)
In the example included below, we can see that when we assign the $markedIf(Last Update=2017)
keyword, an exclamation mark will be added at the instance level next to the Name
field if the value of the Last Update
field is equal to 2017
.
The video include below shows the $markedIf()
keyword in action: