---
title: "Example 18 - Before Closure Screen - Check if every required Item in a checklist is filled out"
canonical: "https://help.fieldbuddy.com/space/FBDOCS/6283493377/Example%2018%20-%20Before%20Closure%20Screen%20-%20Check%20if%20every%20required%20Item%20in%20a%20checklist%20is%20filled%20out"
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 accessing the Closure Screen if a specific item of checklists added to the work order is required, yet it does not have any input.

In other words, we would like to ensure that for **every instance of a specific checklist **added to a work order, there exists at least one item which is required, but does not have a value. If this is the case, we shouldn’t allow the technician to close the work order.

The checklist is called `Checklist with Every Input Type`. All input items are required in this checklist.

```
Required_fields_in_checklist_must_be_filled_out Required_fields_in_checklist_must_be_filled_out at 
f=()=>{return (-1 !== -1) };Boolean(f());
Pass: false
ErrorMessage: All required fields in 'Checklist with Every Input Type' must be filled out before closing the work order.
```