# Button to add new row using form is hidden when collection is empty

**URL:** <https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940>\
**Category:** Ask for Help\
**Created:** [May 13, 2022, 9:19pm UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940 "2022-05-13T21:19:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aseem\_Agarwal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aseem_agarwal/32/38677_2.png) [@Aseem\_Agarwal](https://community.glideapps.com/u/Aseem_Agarwal)\
**Post date:** [May 13, 2022, 9:19pm UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940/1 "2022-05-13T21:19:08Z")

</div>

Hi

I am creating a workflow using the “Upvote” template but I am facing a problem.  
I have a collection displayed along with the button to add a new entry using a form. But somehow, if the collection is initially empty, the button won’t show up. Only when the collection has some items, that the button to add a new entry shows up.

Can you please help ?

---

<div class="post-metadata">

**Author:** ![Hani\_Ibrahim](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hani_ibrahim/32/42108_2.png) [@Hani\_Ibrahim](https://community.glideapps.com/u/Hani_Ibrahim)\
**Post date:** [May 13, 2022, 9:45pm UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940/2 "2022-05-13T21:45:16Z")

</div>

I faced this problem in many occasions, However i used to add a row with Zero text in any cell in single empty row, the table will never be empty, then i filter that table to exclude the empty row. I hope it help in your case

---

<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:** [May 14, 2022, 12:45am UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940/3 "2022-05-14T00:45:01Z")

</div>

That is the expected behaviour. What I usually do is showing a title component with the same action when there are no rows to display.

---

<div class="post-metadata">

**Author:** ![Aseem\_Agarwal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aseem_agarwal/32/38677_2.png) [@Aseem\_Agarwal](https://community.glideapps.com/u/Aseem_Agarwal)\
**Post date:** [May 16, 2022, 9:20pm UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940/4 "2022-05-16T21:20:38Z")

</div>

> [@Hani\_Ibrahim](#):
>
> hope

Hey  
Thanks for replying! The issue is that I am filtering the data for the screen by applying a filter. Meaning; the items are displayed only if the current user is the one who has added them. In this case, if the user hasn’t added any items the list is blank (which is fine) but the button is also hidden. Again, the only workaround for this is adding a blank row for every item which I don’t want to do.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 16, 2022, 9:30pm UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940/5 "2022-05-16T21:30:24Z")

</div>

I would create a separate single row table and use it as the source of your tab. On that screen you can then place your inline list that points to the correct table, along with your button to add rows.

---

<div class="post-metadata">

**Author:** ![Hani\_Ibrahim](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hani_ibrahim/32/42108_2.png) [@Hani\_Ibrahim](https://community.glideapps.com/u/Hani_Ibrahim)\
**Post date:** [May 16, 2022, 10:02pm UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940/6 "2022-05-16T22:02:18Z")

</div>

unfortunately, it is also faded out when the table is empty. i tried that too.

---

<div class="post-metadata">

**Author:** ![Hani\_Ibrahim](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hani_ibrahim/32/42108_2.png) [@Hani\_Ibrahim](https://community.glideapps.com/u/Hani_Ibrahim)\
**Post date:** [May 16, 2022, 10:12pm UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940/7 "2022-05-16T22:12:38Z")

</div>

I am using a blank row as the solution then filtering it out from the targeted table.

---

<div class="post-metadata">

**Author:** ![Aseem\_Agarwal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aseem_agarwal/32/38677_2.png) [@Aseem\_Agarwal](https://community.glideapps.com/u/Aseem_Agarwal)\
**Post date:** [May 16, 2022, 11:03pm UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940/8 "2022-05-16T23:03:21Z")

</div>

Thanks Jeff. That worked!

---

<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:** [May 17, 2022, 1:06am UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940/9 "2022-05-17T01:06:42Z")

</div>

I almost always build my tabs on the user profile’s row, so the empty row thing never happens to me.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/3/93d0f4cf763ecac67dbe44deed178055e4f3723a.png)

An alternative is to use a hint component, I guess.

---

<div class="post-metadata">

**Author:** ![Hani\_Ibrahim](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hani_ibrahim/32/42108_2.png) [@Hani\_Ibrahim](https://community.glideapps.com/u/Hani_Ibrahim)\
**Post date:** [May 17, 2022, 8:23am UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940/10 "2022-05-17T08:23:11Z")

</div>

Thank you for sharing your respected experience with us. i will try to implement that.  
Actually a page starts looks pretty when displaying a contents. so i will try to add an image field contains an image to imitate the look of entered data, than disappear when any data start to be incorporated.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [May 18, 2022, 8:23am UTC](https://community.glideapps.com/t/button-to-add-new-row-using-form-is-hidden-when-collection-is-empty/41940/11 "2022-05-18T08:23:28Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
