Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/jjknowledgebase.com/wp.jjknowledgebase.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-ulike domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/jjknowledgebase.com/wp.jjknowledgebase.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-optimize domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/jjknowledgebase.com/wp.jjknowledgebase.com/wp-includes/functions.php on line 6121
Color Coding – Field Service Management 2 – knowledgebase JJ
Warning: Attempt to read property "ID" on null in /var/www/vhosts/jjknowledgebase.com/wp.jjknowledgebase.com/wp-includes/link-template.php on line 409

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 *