Color Coding – Field Service Management 2

Swatches

Swatches are the colors available in each of the palettes. It is not supported to configure additional swatches or change their colors.

The swatches for the available palettes are listed below:

The swatches available to events are listed below:

Adding a Color Group

Going back to the use case on task priority, configure the group by:

  • Setting group object name to any unique descriptive value.
  • Setting label property to the text Priority.
  • Setting column property to the event mapped field priority.
  • Setting items property to an Array of Objects representing the values high, medium and low.
  • Setting palette property to Rainbow one of the palette values.
  • On the item object, set the swatch property to specific swatch names which are under the Rainbow palette.
  • Setting eventswatch flag to true to source swatch from the color swatches.

{
    "colour": {
        "group": {
            "mypriority": {
                "label": "Priority",
                "column": "priority",
                "palette": "Rainbow",
                "items": [{ "id": "1", "label": "High", "swatch": "redpigment" }, { "id":"2", "label": "Medium", "swatch": "sizzlingsunrise" }, { "id": "3", "label": "Low","swatch": "skybluecrayola" }],
                "eventswatch": true
            }
        }
    }
}

Removing a Color Group

To remove an existing group from appearing as an option, set the existing group property to null.

{
    "colour": {
        "group": {
            "priority": null
        }
    }
}

Leave a comment

Your email address will not be published. Required fields are marked *