# Flex display parameter doesn't seem to work using a tag

**URL:** <https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 21, 2025, 8:27pm UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531 "2025-05-21T20:27:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [May 21, 2025, 8:27pm UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/1 "2025-05-21T20:27:51Z")

</div>

So I was able to get visible to work with a tag that's null or a number. I used the same indirect tag settings for display and it doesn't work. Any thoughts?Thx, jake

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [May 21, 2025, 8:38pm UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/2 "2025-05-21T20:38:29Z")

</div>

You'll need to provide a bit more information for anyone to be able to help you.

What is your goal? To toggle display of a container based on the value of a tag?

Show examples of what you have tried so far that have or have not worked.

The `display` property is expecting a value of `true` or `false`, numbers \>= 1 will be coerced to `true` while 0 is coerced to `false`. Null is probably being coerced to `false`. In your binding, you'll need to perform the necessary comparisons and conversions to end up with either `true` or `false`.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [May 21, 2025, 8:41pm UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/3 "2025-05-21T20:41:27Z")

</div>

Some of the rows need to go away or stay if the tag is valid. An example of one of the indirect tags is [default]{Unit}/FirstStageSuctionPressure, Unit is a parameter passed into the view. This same tag works when using it on visible in a coordinate view.Thx,Jake

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [May 21, 2025, 8:42pm UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/4 "2025-05-21T20:42:54Z")

</div>

I've also tried an expression with if, if and isNull, never seems to disappear unless I hardcode the display to true or false.Thx,Jake

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [May 21, 2025, 8:46pm UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/5 "2025-05-21T20:46:50Z")

</div>

> [@codersmurf](#):
>
> Some of the rows

Is this a flex repeater or flex container?

> [@codersmurf](#):
>
> if the tag is valid

How are you determining if the tag is valid? Show pictures of your configuration/bindings.

> [@codersmurf](#):
>
> never seems to disappear

Are you checking this in designer only or in an active session?

Bottom line is, show some pictures of the bindings that work and the bindings that don't work. We can't see your screen so we have no ability to determine if its a simple expression or binding error or something else. Also, what version of Ignition are you on?

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [May 21, 2025, 8:51pm UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/6 "2025-05-21T20:51:33Z")

</div>

Not sure what a flex repeater is, I just created a view that's a flex container.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/9/b9ddf85ba5cb23458c28ed411eecb872294da98c.png)

active session

Here's the visible one that works:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/d/6de2c9ca4e7e16b95f32e8f0c56837443ba3aad2.png)

thx,jake

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [May 21, 2025, 8:59pm UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/7 "2025-05-21T20:59:03Z")

</div>

Add an expression transform to your binding with the following expression:

```python
!isBadOrError({value})

```

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [May 21, 2025, 9:01pm UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/8 "2025-05-21T21:01:23Z")

</div>

> [@ryan.white](#):
>
> `!isBadOrError({value})`

worked like a charm, thank you kindly.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [May 21, 2025, 9:06pm UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/9 "2025-05-21T21:06:07Z")

</div>

Spoke too soon, it does work, except on one, but it also hides it when it shouldn't. But certainly closer.

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [May 21, 2025, 9:06pm UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/10 "2025-05-21T21:06:57Z")

</div>

> [@codersmurf](#):
>
> hides it when it shouldn't.

Does one of your tags have bad quality? That would cause it to hide as well as a bad path. You could also try `!isBad({value})`, as bad tag path shows up as bad quality, as opposed to an error.

edit: You could also try

```python
qualityOf({value}) != 'Bad_Disabled' &&
qualityOf({value}) != 'Bad_NotFound'

```

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 22, 2025, 7:36am UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/11 "2025-05-22T07:36:05Z")

</div>

This is exactly the reason I asked Paul to add `isAvailable` to his extensions module!

IsBad, isGood and the rest all don't have the right conditions to hide a tag. You don't want to hide a tag that simply has configuration errors or that is bad stale, or any of the other various bad qualities, _other than_ not found and disabled. Bad not found and disabled are the only bad conditions you want to hide a tag on, as it doesn't exist or is specifically disabled

And actually, you need to use this:

```python
indexOf(toStr(qualityOf({tag})), 'Bad_NotFound') = -1 &&
indexOf(toStr(qualityOf({tag})), 'Bad_Disabled') = -1

```

Since the quality returns a context (although I havent used this now in like 3 years since Paul added isAvailable to the module)

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [May 22, 2025, 11:12am UTC](https://forum.inductiveautomation.com/t/flex-display-parameter-doesnt-seem-to-work-using-a-tag/106531/12 "2025-05-22T11:12:57Z")

</div>

Finally got it nailed with some hacking, here's a pic of what I had to do:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/8/e80f359a05fc2a45ee2398f3ab83f82153d94491.png)

Thanks for the help all.
