---
title: "Example 7a - Adding/Editing Timesheet Line Item - TSLI Type is required"
canonical: "https://help.fieldbuddy.com/space/FBDOCS/6420398081/Example%207a%20-%20Adding%2FEditing%20Timesheet%20Line%20Item%20-%20TSLI%20Type%20is%20required"
format: markdown
---
For Details check: [https://upperdeck.atlassian.net/wiki/spaces/FBDOCS/pages/5381455880](https://upperdeck.atlassian.net/wiki/spaces/FBDOCS/pages/5381455880)

This example might not have an immediate practical use, but it can serve as a starting point for creating one.

It shows how to prevent adding or updating a travel timesheet line item if the type is not filled.

```
EXAMPLE-7a TSLI Type check at Timesheet Lineitem
f=()=>{return '' === ''; };Boolean(f());
Pass: false
ErrorMessage: You must enter a Type.
```