# Show Field Label when it has no value

**URL:** <https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334>\
**Category:** Ask for Help\
**Created:** [September 28, 2022, 11:11am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334 "2022-09-28T11:11:30Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scotttiey](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/scotttiey/32/57378_2.png) [@Scotttiey](https://community.glideapps.com/u/Scotttiey)\
**Post date:** [September 28, 2022, 11:11am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/1 "2022-09-28T11:11:30Z")

</div>

Hi is there a way to display a column label via the Fields Content if the column does not contain a value?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 28, 2022, 11:25am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/2 "2022-09-28T11:25:25Z")

</div>

You could create an if-then-else column, something like:

- If value is empty, then “Not set”
- Else value

And then use that column in place of the value in the fields component

---

<div class="post-metadata">

**Author:** ![Scotttiey](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/scotttiey/32/57378_2.png) [@Scotttiey](https://community.glideapps.com/u/Scotttiey)\
**Post date:** [September 28, 2022, 11:27am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/3 "2022-09-28T11:27:36Z")

</div>

@Darren_Murphy thanks but does that mean creating a duplicate if-then-else column for every column if any column may be empty?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 28, 2022, 11:30am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/4 "2022-09-28T11:30:44Z")

</div>

Yes, it would.  
So if you have lots of them then it’s probably not a great solution.

I’ve not used the fields component much. I’ll have a look at it and see if there is a better option.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 28, 2022, 11:46am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/5 "2022-09-28T11:46:07Z")

</div>

@Scotttiey - I just had a quick look, and now I can see why I don’t use it. It’s not very flexible, and you can’t assign actions. Fine for a handful of columns, but not the best choice for any more than that.

How many columns do you have?

I’d probably look to use something else, depending on what you need it to look like. Maybe a markdown table in a rich text component, or even coerce the columns into a list that could be used in a collection.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 29, 2022, 12:29am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/6 "2022-09-29T00:29:38Z")

</div>

> [@Darren\_Murphy](#):
>
> I’d probably look to use something else, depending on what you need it to look like. Maybe a markdown table in a rich text component

Usually what I do is a rich text component, powered by HTML that I generated from JavaScript. That gives me the ability to be flexible in cases like this.

However, you would need to combine all the info needed into a template column first.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [September 29, 2022, 12:53am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/7 "2022-09-29T00:53:00Z")

</div>

> [@ThinhDinh](#):
>
> Usually what I do is a rich text component, powered by HTML that I generated from JavaScript.

Seems like overkill for a no-code platform 😅

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 29, 2022, 1:04am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/8 "2022-09-29T01:04:17Z")

</div>

If only we have some sort of a basic table component for Pages, then my life would be much easier.

The final product from the process above looks somewhat like this.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/6/1601b25f715e8adde266fb9b22fb015a3f6e5df9.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 29, 2022, 1:08am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/9 "2022-09-29T01:08:48Z")

</div>

> [@ThinhDinh](#):
>
> Usually what I do is a rich text component, powered by HTML that I generated from JavaScript. That gives me the ability to be flexible in cases like this.

Yeah, HTML is my choice for tables as well. Although I didn’t suggest it in this case as I could see the opening to a rather deep rabbit hole looming 😉

I’m just curious - why would you use JavaScript to generate HTML? Is that to apply inline styling, or…? 🤔

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 29, 2022, 1:15am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/10 "2022-09-29T01:15:52Z")

</div>

I have a list of info with some fields that can be empty. In some cases, I don’t want to generate empty “rows” for fields that have no value, or in some cases clients tell me to make them “TBD” for example.

With a template column and JS to handle an array I created from splitting the template column, I can be flexible on what to do with those empty values.

Also, wish the JS column allows more input variables 😅

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 29, 2022, 1:20am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/11 "2022-09-29T01:20:02Z")

</div>

> [@ThinhDinh](#):
>
> Also, wish the JS column allows more input variables

Pass it a JSON object, and then use `JSON.parse()` to unpack it. Then you can have as many variables as you want 😉  
That’s what I do with that Audit Log concept.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [September 29, 2022, 1:43am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/12 "2022-09-29T01:43:10Z")

</div>

I agree…the Fields component doesn’t cut it.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 29, 2022, 1:47am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/13 "2022-09-29T01:47:33Z")

</div>

Yeah, but still have to pack it into a template column first haha.

---

<div class="post-metadata">

**Author:** ![Scotttiey](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/scotttiey/32/57378_2.png) [@Scotttiey](https://community.glideapps.com/u/Scotttiey)\
**Post date:** [September 29, 2022, 6:57am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/14 "2022-09-29T06:57:06Z")

</div>

Find it strange that this is missing. It creates a bad UX experience. A toggle option would be great on Fields, ‘Show label if column empty’ as at least that gives users the option

---

<div class="post-metadata">

**Author:** ![Jordan\_Olivas](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jordan_olivas/32/78657_2.png) [@Jordan\_Olivas](https://community.glideapps.com/u/Jordan_Olivas)\
**Post date:** [January 5, 2025, 3:48am UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/15 "2025-01-05T03:48:26Z")

</div>

Was this feature ever implemented? Is there a smoother solution now?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 5, 2025, 11:11pm UTC](https://community.glideapps.com/t/show-field-label-when-it-has-no-value/50334/16 "2025-01-05T23:11:59Z")

</div>

It’s still somewhat at the same point as what has been discussed in this thread already.
