Flexi Kanban
  • Introduction
    • πŸ“ƒAbout Flexi Kanban
    • βš–οΈFlexi Kanban in Comparison with Other
    • πŸ“˜What are Kanbans?
    • πŸ“•User's Guide to the Kanban Boards
  • Standard Dashboard
    • πŸš€Getting started
      • How to Build a Simple Kanban Using Creation Wizard Abilities
      • Demo Example: Task Dashboard
      • Demo Example: Events Dashboard
      • Demo Example: Opportunities Dashboard
      • Demo Example: Gantt Dashboard
      • Demo Example: Cases Dashboard
    • πŸ“Basics
      • How to Create Standard Dashboard
      • How to Create Child Dashboard
      • How to Incorporate Child Dashboard into Lightning Page
      • How to Open Dashboard in builder (Edit)
      • How to Share Dashboard
      • How to Clone Dashboard
    • πŸ—οΈConfigure Dashboard
      • Working with Dashboard Layout
      • How to Configure Dashboard Basic Properties
      • How to Configure Dashboard Filters
      • How to Add Dashboard Statistics
      • How to Configure Variables
      • How to Configure Events
      • How to add Dashboard Buttons and Menus
    • πŸ™οΈConfigure Column
      • How to Π‘onfigure Column Properties
      • How to Set Column Groups
      • How to Set and Use Column Custom Attributes
      • How to configure Column Data Source
      • How to work with Related Objects
      • How to configure Column Header
      • How to configure Column Body
      • How to configure Column Footer
      • How to configure Column Container and Filters
    • 🎫Configure Card
      • How to configure Card Properties
      • How to configure Card Data Source and Conditions
      • How to configure Card Compact Layout
      • How to configure Card Layout
      • How to configure and use Card Custom Attributes
      • Configuring Card Movement and Column Junctions
      • Configuring Card Actions
    • πŸ“šGroups of Cards
      • How to configure Card Grouping
    • πŸ”§Tools
      • Using Merge Field Picker
      • Using Formula Editor
      • Configuring CSS styles
      • Configuring Rows, Cells, Menus and Buttons
      • Configuring Handlers
    • πŸ‘“Using Dashboard
      • How to use Kanban API actions
      • How to Incorporate Dashboard into Lightning Page
      • How to build the link to the Dashboard
      • How to Work with Variables
      • How to debug Dashboard
      • How to Work with Filters and Orders
    • ✨Howtos and Best Practices
      • How to configure communication between Dashboards
      • How to configure communication between Dashboard and Form
      • How to display different layouts for the same kanban card
      • How to design kanban for your needs
        • How to colorize cards
        • How to add a quick-filter column
      • What inactive column can be used for
      • Tips and Tricks
  • Composite Dashboard
    • πŸ—„οΈIntroduction
      • πŸ”§How to Create a Composite Dashboard
    • πŸͺ›Working with Composite Dashboard Layout
      • Configuring Parent Dashboard
      • Configuring Child Dashboard
    • πŸ–‡οΈConnections Between Dashboards
    • πŸ”¬Examples
      • !! Calendar Dashboard
    • πŸ₯‡Howtos and Best Practices
      • How to Pass Variables Between Parent and Child Dashboards
  • Components
    • πŸ“‹Forms
      • πŸ“‘Basics
        • Form Building Overview
        • Working with Form Settings
        • Working with Source Object fields
        • How to Preview the Form
        • How to configure the Form Sharing Rules
        • Understanding the Form Dependencies
        • Working with Conditional Styles
        • Working with Conditions
        • Search Over the Form
      • πŸͺ›Tools
        • Variables
        • Additional Fields
        • Context Object
        • Form Action
        • Event
      • Components
        • Add and Remove Form Components
        • Components Basic Properties
        • Components Validation Rules
        • Styling Form and Form Components
        • String Field
        • Text Area Field
        • Rich Text Field
        • Lookup Field
        • Date Field
        • Datetime Field
        • Time Field
        • Number Field
        • Currency Field
        • Multi-Select Field
        • Picklist Field
        • Option: Section
        • Option: Static Text
        • Option: Image
        • Option: Blank Space
        • Option: File
        • Option: Custom Button
        • Option: Custom URL
        • Option: Nested Form
        • Option: Lightning Component
        • List. Related Lists.
      • Using Form
        • How to incorporate Form into the Lightning Page
        • How to incorporate Form into Screen Flow
        • How to build the link to the Form
        • (unpublished, empty)How to incorporate Form into the Lightning Component
        • How to run Form Action from Lightning Component
      • Tricks, Hints and Best Practices
        • How to configure communication between Forms
        • How to pre-populate form fields
        • Deployment of Forms
        • What Are Parameters?
    • 🀾Actions/Action Groups
      • Basics
        • Working with Actions
        • Working with Action Groups
        • Working with Functions
        • Working with Context objects
        • Working with Conditions
      • Types
        • Validation Rule Action
        • Define Variable Action
        • Create Record Action
        • Update Records Action
        • Delete Records Action
        • Send Email Action
        • Callout Action
        • Execute Apex Action
        • KanBan API Action
      • Using Actions
        • !!unpublished empty!! How to execute Action/Group from the SF Process/Flow Builder
        • How to execute Action/Group through the REST api
        • !!unpublished empty!! How to execute Action/Group from the Einstain Bot
        • !!unpublished empty !! How to execute Action/Group from APEX
      • Best Practices
        • !! How to use Execute in background option
        • !! Deployment Actions/Action Groups
  • πŸ“–References
    • βš™οΈApplication Settings
    • ♾️Functions
      • SObject
      • Text
      • Logical
      • Numeric
      • Date and Time
      • JSON
      • System
      • Charts
    • πŸ—ƒοΈQuery Conditions
    • Apex Data Provider
    • πŸ“How to add a Kanban to Navigation Items Panel
    • πŸ‘₯Manage Licenses
    • πŸͺͺAssign Permission Sets
    • πŸ“¦Deployment
      • Deploying Using Standard Credentials
      • Deploying Using Connected App Authentication
      • How to configure the Salesforce Connected Application for Flexi Kanban deployment
  • Grant Login Access to Support
  • Subscription Plans
  • Support Agreement
  • Access License Agreement
  • Privacy Policy
Powered by GitBook
On this page
  • First, let's indicate an issue type:
  • Second, let's indicate issue late status:
  • Third, let's indicate issue priority:
  1. Standard Dashboard
  2. Howtos and Best Practices
  3. How to design kanban for your needs

How to colorize cards

Last updated 11 months ago

One of basic ideas of Kanban is an easy visual distinguishment of cards, and the fundamental way to do this is placing them into different columns. But what if you need to differ cards that are in the same column? And you want to do it without reading texts and clicking buttons? In this situation you need some visual highlights. Maybe several...

Let's go through a simple process of doing this.

For example, you have a kanban that is configured on "Issue" object and has default design. Issue cards are put in columns by their State:

In this newly created kanban all Issue cards look the same. But issues have several properties, that can be easy visually indicated without adding more text to be shown.

First, let's indicate an issue type:

  • This property is useful, but not the most significant - so, we can indicate it with something small, e.g., card border.

  • It has not many values available ("Task" and "Bug") so we can use a small number of colors to differ them.

Open a Card Compact Layout Editor and expand "Styles" section of a Card itself. Add a style proerty:

In this case we can use simple way "If Issue type = "bug" make border red, otherwise make it green", but this is not the best idea: if there are will be issues with some other type (e.g., you will add type = "idea" in the future), or "type is not a mandatory field and there can be issues without type at all).

Do not forget to wrap function in "FORMULA[]" expression.

Type "7px solid FORMULA[]" and add the following code in square brackets:

CASE(
  {Issue__c.Type__c}, 
  'Bug', 'red', 
  'Task', '#3fba3f',
  '#DDDDDD'
)

You can wrap lines and add indents in the formula builder, this will not affect system functioning.

In this example we have specified red border color for issues with "Bug" type, light green - for tasks, and light gray - for other types and issues without type:

Second, let's indicate issue late status:

  • E.g., you need to make cards highlighted if issue is late.

  • Assume this is the most significant criteria to you, so, you want to have whole card colorized.

  • Issue is considered as late if it's Due Date is up to 3 days in the past, and you want to show it yellow. If issue is late more than 3 days, you want to show it red.

Issues can have no Due Date at all, so, you need to handle this situation.

Open card compact layout editor and add one more CSS property "background-color" into "Styles" section. Set this property value to the following code:

FORMULA[
  IF(
    ISBLANK({Issue__c.Due_Date__c}),
    'white',
    IF(
      DATEVALUE({$System.DateTime}) - DATEVALUE({Issue__c.Due_Date__c}) > 3,
      '#F7E2E7',
      IF(
        DATEVALUE({$System.DateTime}) - DATEVALUE({Issue__c.Due_Date__c}) > 0,
        '#f7f4e2',
        'white'
      )
    )
  )
]

Some explanation:

And what your kanban will look like after this:

Third, let's indicate issue priority:

  • E.g., you need to make cards indicate issues priority.

  • Assume this is the quite significant criteria to you, so, you want to have noticeable indicator. A small icon will be good for this.

  • Issue priority usually has the following values: Low, Normal, High and Critical. Also issue can have no priority set at all.

Open card compact layout editor and add an "Icon" component to the layout.

Set value to "utility:priority" to display standard Salesforce icon (a flag).

Set component title to Priority: {Issue__c.Priority__c}.

Set width to 16 pixels.

Expand "Styles" section of this icon and add a CSS property "color". Set this property value to the following code:

FORMULA[
  CASE(
    {Issue__c.Priority__c}, 
    'Low', '#2375D0', 
    'Normal', '#41AA53',
    'High','Orange',
    'Critical','Red',
    'white'
  )
]

"White" is a default color that will be applied to icon if issue has no priority (or some other one).

After these changes saved your kanban will look like this:

Congratulations! You have kanban that displays several important properties just by colorization.

And you can design your cards in any desired way:

Set style property name to "border-left" and click button to open formula builder to edit a property value. The typical CSS style for this property looks like "7px solid red", but we need to set color depending on issue type.

So, let's leave "if/else" for fields with guaranteed two-way choices, and use "Case" .

✨
function
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing
Drawing