---
title: "status (rules)"
canonical: "https://help.fieldbuddy.com/space/FBDOCS/5671124996/status%20(rules)"
format: markdown
---
Define if you want to hide Work Orders with statuses not present in the default list. Also allows to configure bottom sheet and other things

<details>
<summary>Sample Config</summary>

```
{
"hidden": [
    "CLOSED"
],
  "bottomSheet": {
    "isUsed": true,
    "isScrollable": true,
    "countOfStatusInView": {
      "horizontalLayout": {
        "phone": 3.2,
        "tablet": {
          "landscape": 7.2,
          "portrait": 5.2
        }
      }
    },
    "actions": [
      {
        "name": "call",
        "label": "${Label.WorkOrderStatusActionCall}",
        "defaultLabel": "Bel",
        "icon": {
          "type": "IonIcons",
          "name": "call"
        },
        "dataBinding": [
          {
            "field": "Phone",
            "table": "Account",
            "var": "PHONE1"
          },
          {
            "field": "S_Telefoonnummer_bewoner__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "PHONE2"
          }
        ],
        "dataText": {
          "Phone1": "PHONE1",
          "Phone2": "PHONE2"
        }
      },
      {
        "name": "navigate",
        "label": "${Label.WorkOrderStatusActionNavigate}",
        "defaultLabel": "Navigeer",
        "icon": {
          "type": "IonIcons",
          "name": "car"
        },
        "dataBinding": [
          {
            "field": "FIELDBUDDY__Postal_Code__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "POSTAL_CODE"
          },
          {
            "field": "FIELDBUDDY__Street__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "STREET"
          },
          {
            "field": "FIELDBUDDY__House_Number__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "HOUSE_NUMBER"
          },
          {
            "field": "FIELDBUDDY__City__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "CITY"
          },
          {
            "field": "FIELDBUDDY__Coordinates__Latitude__s",
            "table": "FIELDBUDDY__Location__c",
            "var": "LATITUDE"
          },
          {
            "field": "FIELDBUDDY__Coordinates__Longitude__s",
            "table": "FIELDBUDDY__Location__c",
            "var": "LONGITUDE"
          }
        ],
        "dataText": {
          "PostalCode": "POSTAL_CODE",
          "Street": "STREET",
          "HouseNumber": "HOUSE_NUMBER",
          "City": "CITY",
          "Latitude": "LATITUDE",
          "Longitude": "LONGITUDE"
        }
      },
      {
        "name": "overview",
        "label": "${Label.WorkOrderStatusActionOverview}",
        "defaultLabel": "Overzicht",
        "icon": {
          "type": "FontAwesome",
          "name": "clipboard"
        }
      }
    ],
    "actionsLayout": {
      "horizontal": {
        "OPEN": [
          {
            "name": "call"
          },
          {
            "name": "navigate"
          }
        ],
        "ON_THE_GO": [
          {
            "name": "call"
          },
          {
            "name": "navigate"
          }
        ],
        "ARRIVED": [
          {
            "name": "call"
          }
        ],
        "IN_PROGRESS": [
          {
            "name": "overview"
          }
        ],
        "CLOSED": [
          {
            "name": "overview"
          }
        ]
      },
      "vertical": {
        "OPEN": [
          {
            "name": "call"
          }
        ],
        "ON_THE_GO": [
          {
            "name": "navigate"
          }
        ],
        "ARRIVED": [],
        "IN_PROGRESS": [],
        "CLOSED": [
          {
            "name": "overview"
          }
        ]
      }
    }
  }
}
```
</details>

| property | Description | Sample Value | Default | Notes |
| --- | --- | --- | --- | --- |
| #### hidden | Work Orders with status present on the list hidden will be hidden when a filter button is pressed.  
Available since [3.440.1](https://help.fieldbuddy.com/space/FBDOCS/5170233629/3.440.1+-+Swift+-+Filter%2C+bigger+buttons+and+more) | ```
"hidden": [
    "CLOSED"
]
``` | ```
"hidden": [
    "CLOSED",
    "CANCELLED"
]
``` | ![image](media://397850ec-b807-48fb-806f-14c5695a1065) |
| #### bottomSheet | The bottom sheet component used to render Work Order Status list can be controlled here.  
Available since [3.490.4](https://help.fieldbuddy.com/space/FBDOCS/5592416257/(2024-06-27)+3.490.4+-+FieldBuddy+Swift+-+Slow+Ring+(Previous))<br>`isScrollable` – if true, the component is horizontally scrollable. (i.e. user can see other statuses without expanding the sheet).<br>`countOfStatusInView` – determines the amount of statuses shown in the horizontal view for different screen sizes and device types. If not a whole number, the end of status “sticks out“ proportional to the number that comes after the decimal point. Recommended value is `x.2`<br>`actions` – a work order status can have a set of corresponding actions, which makes it more convinient for the user to take those actions when they change the status. These can be configured here.<br>Here is the list values for supported actions and what they do when pressed:<br>- `call` – user is presented with a action sheet with the phone number of the account of work order.
  - Data bindings support two sources. By default, `Phone1` is looked up from the `Phone` field in the `Account` table, which covers most of the cases. If this fails to retrieve any data, an alternative data binding can be given under `Phone2`, including customers like feenstra – which store phone data in another table and field in the database.
- `navigate` – user is prompted to select a navigation app to navigate to the location/sublocation of a work order.
- `overview` – opens the work order summary screen.<br>List of available icons can be found here: [https://icons.expo.fyi/Index](https://icons.expo.fyi/Index)<br>`actionsLayout` – controls which actions are linked to which status by layout type (see pictures in notes column).<br>- The label of an action is only displayed in phones in horizontal layout of the status list.
- The keys of `vertical` and `horizontal` has to match the values of status.
- In vertical layout, a specific action should be used only for one status to avoid repeating actions, since in vertical layout statuses and actions are shown alltogether.
- In horizontal layout, the same action can be added to multiple statuses without problem. In this layout, the action(s) will only be visible if the status linked to action is the active/current status.
- In order to change the label of an action, admin must either:
  - Make sure a label exists for that specific action in salesforce as a resource (preferred method), OR,
  - `defaultLabel` must be set as the fallback value of the label in case the label resource is not available in list of labels returned by salesforce. | ```
{
  "bottomSheet": {
    "isScrollable": true,
    "countOfStatusInView": {
      "horizontalLayout": {
        "phone": 3.2,
        "tablet": {
          "landscape": 7.2,
          "portrait": 5.2
        }
      }
    },
    "actions": [
      {
        "name": "call",
        "label": "${Label.WorkOrderStatusActionCall}",
        "defaultLabel": "Bel",
        "icon": {
          "type": "IonIcons",
          "name": "call"
        },
        "dataBinding": [
          {
            "field": "Phone",
            "table": "Account",
            "var": "PHONE1"
          },
          {
            "field": "S_Telefoonnummer_bewoner__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "PHONE2"
          }
        ],
        "dataText": {
          "Phone1": "PHONE1",
          "Phone2": "PHONE2"
        }
      },
      {
        "name": "navigate",
        "label": "${Label.WorkOrderStatusActionNavigate}",
        "defaultLabel": "Navigeer",
        "icon": {
          "type": "IonIcons",
          "name": "car"
        },
        "dataBinding": [
          {
            "field": "FIELDBUDDY__Postal_Code__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "POSTAL_CODE"
          },
          {
            "field": "FIELDBUDDY__Street__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "STREET"
          },
          {
            "field": "FIELDBUDDY__House_Number__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "HOUSE_NUMBER"
          },
          {
            "field": "FIELDBUDDY__House_Number_Suffic__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "SUFFIX"
          },
          {
            "field": "FIELDBUDDY__City__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "CITY"
          },
          {
            "field": "FIELDBUDDY__Coordinates__Latitude__s",
            "table": "FIELDBUDDY__Location__c",
            "var": "LATITUDE"
          },
          {
            "field": "FIELDBUDDY__Coordinates__Longitude__s",
            "table": "FIELDBUDDY__Location__c",
            "var": "LONGITUDE"
          }
        ],
        "dataText": {
          "PostalCode": "POSTAL_CODE",
          "Street": "STREET",
          "HouseNumber": "HOUSE_NUMBER",
          "HouseNumberSuffix": "SUFFIX",
          "City": "CITY",
          "Latitude": "LATITUDE",
          "Longitude": "LONGITUDE"
        }
      },
      {
        "name": "overview",
        "label": "${Label.WorkOrderStatusActionOverview}",
        "defaultLabel": "Overzicht",
        "icon": {
          "type": "FontAwesome",
          "name": "clipboard"
        }
      }
    ],
    "actionsLayout": {
      "horizontal": {
        "OPEN": [
          {
            "name": "call"
          },
          {
            "name": "navigate"
          }
        ],
        "ON_THE_GO": [
          {
            "name": "call"
          },
          {
            "name": "navigate"
          }
        ],
        "ARRIVED": [
          {
            "name": "call"
          }
        ],
        "IN_PROGRESS": [
          {
            "name": "overview"
          }
        ],
        "CLOSED": [
          {
            "name": "overview"
          }
        ]
      },
      "vertical": {
        "OPEN": [
          {
            "name": "call"
          }
        ],
        "ON_THE_GO": [
          {
            "name": "navigate"
          }
        ],
        "ARRIVED": [],
        "IN_PROGRESS": [],
        "CLOSED": [
          {
            "name": "overview"
          }
        ]
      }
    }
  }
}
``` | ```
{
  "bottomSheet": {
    "isScrollable": true,
    "countOfStatusInView": {
      "horizontalLayout": {
        "phone": 3.2,
        "tablet": {
          "landscape": 7.2,
          "portrait": 5.2
        }
      }
    },
    "actions": [
      {
        "name": "call",
        "label": "${Label.WorkOrderStatusActionCall}",
        "defaultLabel": "Bel",
        "icon": {
          "type": "IonIcons",
          "name": "call"
        },
        "dataBinding": [
          {
            "field": "Phone",
            "table": "Account",
            "var": "PHONE1"
          },
          {
            "field": "S_Telefoonnummer_bewoner__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "PHONE2"
          }
        ],
        "dataText": {
          "Phone1": "PHONE1",
          "Phone2": "PHONE2"
        }
      },
      {
        "name": "navigate",
        "label": "${Label.WorkOrderStatusActionNavigate}",
        "defaultLabel": "Navigeer",
        "icon": {
          "type": "IonIcons",
          "name": "car"
        },
        "dataBinding": [
          {
            "field": "FIELDBUDDY__Postal_Code__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "POSTAL_CODE"
          },
          {
            "field": "FIELDBUDDY__Street__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "STREET"
          },
          {
            "field": "FIELDBUDDY__House_Number__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "HOUSE_NUMBER"
          },
          {
            "field": "FIELDBUDDY__House_Number_Suffic__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "SUFFIX"
          },
          {
            "field": "FIELDBUDDY__City__c",
            "table": "FIELDBUDDY__Location__c",
            "var": "CITY"
          },
          {
            "field": "FIELDBUDDY__Coordinates__Latitude__s",
            "table": "FIELDBUDDY__Location__c",
            "var": "LATITUDE"
          },
          {
            "field": "FIELDBUDDY__Coordinates__Longitude__s",
            "table": "FIELDBUDDY__Location__c",
            "var": "LONGITUDE"
          }
        ],
        "dataText": {
          "PostalCode": "POSTAL_CODE",
          "Street": "STREET",
          "HouseNumber": "HOUSE_NUMBER",
          "HouseNumberSuffix": "SUFFIX",
          "City": "CITY",
          "Latitude": "LATITUDE",
          "Longitude": "LONGITUDE"
        }
      },
      {
        "name": "overview",
        "label": "${Label.WorkOrderStatusActionOverview}",
        "defaultLabel": "Overzicht",
        "icon": {
          "type": "FontAwesome",
          "name": "clipboard"
        }
      }
    ],
    "actionsLayout": {
      "horizontal": {
        "OPEN": [
          {
            "name": "call"
          },
          {
            "name": "navigate"
          }
        ],
        "ON_THE_GO": [
          {
            "name": "call"
          },
          {
            "name": "navigate"
          }
        ],
        "ARRIVED": [
          {
            "name": "call"
          }
        ],
        "IN_PROGRESS": [
          {
            "name": "overview"
          }
        ],
        "CLOSED": [
          {
            "name": "overview"
          }
        ]
      },
      "vertical": {
        "OPEN": [
          {
            "name": "call"
          }
        ],
        "ON_THE_GO": [
          {
            "name": "navigate"
          }
        ],
        "ARRIVED": [],
        "IN_PROGRESS": [],
        "CLOSED": [
          {
            "name": "overview"
          }
        ]
      }
    }
  }
}
``` | ![Simulator Screenshot - iPhone 15 - 2024-05-13 at 12.14.28.png](media://d26782c8-a1b1-43c3-b130-a9b71c1f1c62)<br>![Simulator Screenshot - iPhone 15 - 2024-05-13 at 12.14.12.png](media://03f7df50-e8ee-4670-a4c6-70bd72e11c30) |