# Hide Workorders if there aren't any

**URL:** <https://community.blippa.com/t/hide-workorders-if-there-arent-any/234>\
**Category:** Uncategorized\
**Tags:** rules, work-order\
**Created:** [February 12, 2025, 1:43pm UTC](https://community.blippa.com/t/hide-workorders-if-there-arent-any/234 "2025-02-12T13:43:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrunhem](https://community.blippa.com/letter_avatar_proxy/v4/letter/m/919ad9/32.png) [@mrunhem](https://community.blippa.com/u/mrunhem)\
**Post date:** [February 12, 2025, 1:43pm UTC](https://community.blippa.com/t/hide-workorders-if-there-arent-any/234/1 "2025-02-12T13:43:31Z")

</div>

If you use the “Create Work Order” functionality in Forms to allow users to report problems, you might want to show that there are active problem reports.  
Or you might want to hide that info if there are no error reports.  
We have now added variables that allow this.

Before the fix, the button (=Function) for error reports (Felanmälningar) was visible with (0):

 ![Screenshot 2025-02-12 at 14.36.43](https://community.blippa.com/uploads/default/original/1X/6331aa33aa4800bcc9a0682979b6592a29561345.jpeg)

After the fix:

 ![Screenshot 2025-02-12 at 14.37.04](https://community.blippa.com/uploads/default/original/1X/4557fbacf498dd30dac042ba72a8c6fd37444dee.jpeg)

The magic is in the use of Rules:

 ![Screenshot 2025-02-12 at 14.39.30](https://community.blippa.com/uploads/default/original/1X/22fe9a39ad1d84dd1f6c4e5352372fa8a05be9d4.png)

…and the Work Order variable: $var:workorders.object\_activetotal$  
NOTE: YOU NEED TO ADD A VARIABLE WITH VARIABLE TYPE WORKORDERS IN ORDER FOR THIS TAB TO APPEAR.

 ![Screenshot 2025-02-12 at 14.42.47](https://community.blippa.com/uploads/default/original/1X/14ffaf15e202bec3000dc84bc258bc372b5fba77.png)

…and setting the rule to only show the function if there are more than zero work orders:

 ![Screenshot 2025-02-12 at 14.44.05](https://community.blippa.com/uploads/default/original/1X/dbd9a2845cfcf245e4cbfda33266d0608ee35a9d.png)

When there is a problem report, the button will appear:

 ![Screenshot 2025-02-12 at 14.49.02](https://community.blippa.com/uploads/default/original/1X/a84a9bff1436d2457f3e01e728b43b10575ea3ba.png)
