# Adding multiple rows dynamically based on sizes - Need Logic

**URL:** <https://community.glideapps.com/t/adding-multiple-rows-dynamically-based-on-sizes-need-logic/61934>\
**Category:** Ask for Help\
**Created:** [May 20, 2023, 3:32am UTC](https://community.glideapps.com/t/adding-multiple-rows-dynamically-based-on-sizes-need-logic/61934 "2023-05-20T03:32:25Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Pratik\_Shah](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pratik_shah/32/12416_2.png) [@Pratik\_Shah](https://community.glideapps.com/u/Pratik_Shah)\
**Post date:** [May 22, 2023, 4:40am UTC](https://community.glideapps.com/t/adding-multiple-rows-dynamically-based-on-sizes-need-logic/61934/6 "2023-05-22T04:40:39Z")

</div>

> [@Tamara\_Didenko](#):
>
> It ends up being comma-separated. Hacky, but it works

That is good idea I will try that.

> [@Tamara\_Didenko](#):
>
> So you would start with just one size as you have it here, and then add a button that says “add another size

I already did this but, since its a screen form, it was not allowing me to use button more than once.

> [@Having trouble in button actions. If anyone can help](https://community.glideapps.com/t/having-trouble-in-button-actions-if-anyone-can-help/61420/10):
>
> Can you try something and change the condition for the Add button to not check for empty. Only check for 0. If my suspicion is correct, the Add function should break completely. I think your action IF logic is looking at a value that doesn’t change, so only your add condition is only hit once and none of the conditions are ever met again. I suspect that it is because you are inside a form. The action is most likely checking an underlying value in the table and not what you have in the entry…

> [@Tamara\_Didenko](#):
>
> there’s no reason why an overlay form won’t work…

The form I am using is to submit the details of Product for the first time. So if I use overlay form for sizes (before the actual form is submitted), I won’t have product details in Size table and won’t be able to link product with sizes.

> [@Tamara\_Didenko](#):
>
> why not use a collection/table here instead of the form?

How would I link a product (which is not yet submitted to Database) to the sizes which I will add through Table/collection?

Thank you for all your help

---

_[View the full topic](https://community.glideapps.com/t/adding-multiple-rows-dynamically-based-on-sizes-need-logic/61934)._
