# nullFormat style property for label

**URL:** <https://forum.inductiveautomation.com/t/nullformat-style-property-for-label/114390>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [March 9, 2026, 10:55am UTC](https://forum.inductiveautomation.com/t/nullformat-style-property-for-label/114390 "2026-03-09T10:55:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [March 9, 2026, 10:55am UTC](https://forum.inductiveautomation.com/t/nullformat-style-property-for-label/114390/1 "2026-03-09T10:55:44Z")

</div>

Hi!

Is there a different way from a binding script to be able to show _nothing_ when the text is null?

I have a label and I want to show nothing instead of null when null is received.  
Any idea? In table columns exists a property that is called "nullFormat" and allows you to show it as you wish.

Current aproach is using a binding expression script:  
`if(isNull({value}), "", {value})`

Thx!

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 9, 2026, 11:34am UTC](https://forum.inductiveautomation.com/t/nullformat-style-property-for-label/114390/2 "2026-03-09T11:34:53Z")

</div>

`coalesce({value}, "")`

A little cleaner? Otherwise, I suspect not.

Where is the `null` coming from? If it's an SQL query then it could be replaced there.

---

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [March 9, 2026, 11:56am UTC](https://forum.inductiveautomation.com/t/nullformat-style-property-for-label/114390/3 "2026-03-09T11:56:29Z")

</div>

> [@Transistor](#):
>
> Where is the `null` coming from?

from a tag. Is an indirect path.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 9, 2026, 12:49pm UTC](https://forum.inductiveautomation.com/t/nullformat-style-property-for-label/114390/4 "2026-03-09T12:49:36Z")

</div>

Show us the tag binding / configuration.

---

<div class="post-metadata">

**Author:** ![gilloza87](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@gilloza87](https://forum.inductiveautomation.com/u/gilloza87)\
**Post date:** [March 9, 2026, 1:12pm UTC](https://forum.inductiveautomation.com/t/nullformat-style-property-for-label/114390/5 "2026-03-09T13:12:14Z")

</div>

This is what I would do in the expression binding it will also handle error as well.

if({[default]New Tag 1.Quality} != "Good" || isNull({[default]New Tag 1}), "", {[default]New Tag 1})

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 9, 2026, 1:38pm UTC](https://forum.inductiveautomation.com/t/nullformat-style-property-for-label/114390/6 "2026-03-09T13:38:26Z")

</div>

You would be better off doing:

```python
if(isBadOrError({[default]New Tag 1}),"", coalesce({[default]New Tag 1}, "")

```

This handles all varients of Good quality, which will not all match the string "Good".

> **[Good Quality (subcodes 0-255)​ - Quality Codes and Overlays | Ignition User...](https://www.docs.inductiveautomation.com/docs/8.1/platform/tags/quality-codes-and-overlays#good-quality-subcodes-0-255)**
>
> A Quality Code represents a level of confidence in a value. Quality codes are made up of a level (Good, Bad, Error, or Uncertain) and an integer. If a value's quality is not Good, the value generally should not be trusted.

---

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [March 9, 2026, 2:34pm UTC](https://forum.inductiveautomation.com/t/nullformat-style-property-for-label/114390/7 "2026-03-09T14:34:17Z")

</div>

My question is not about the binding, is about a style property. Is there a property that when null recieved prints "blank? Same as the `nullFormat` in table columns.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 9, 2026, 2:41pm UTC](https://forum.inductiveautomation.com/t/nullformat-style-property-for-label/114390/8 "2026-03-09T14:41:27Z")

</div>

You may be able to apply the 'empty' pseudo class in the stylesheet, and have it set the content, but generally you would need Javascript to do this reliably.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 9, 2026, 3:07pm UTC](https://forum.inductiveautomation.com/t/nullformat-style-property-for-label/114390/9 "2026-03-09T15:07:32Z")

</div>

> [@danielps1818](#):
>
> My question is not about the binding, ...

I know, but it's so much better to solve the problem at source. That's why I asked.

If the non-null value from the tag is always numeric you could use the Numeric Entry Field component instead. Set  
`enabled : false`  
and set  
`style.backgroundColor : --neutral-10`  
to clear the disabled background color.
