# Create n row?

**URL:** <https://community.glideapps.com/t/create-n-row/41187>\
**Category:** Ask for Help\
**Created:** [April 24, 2022, 10:58pm UTC](https://community.glideapps.com/t/create-n-row/41187 "2022-04-24T22:58:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Cura](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_cura/32/37628_2.png) [@David\_Cura](https://community.glideapps.com/u/David_Cura)\
**Post date:** [April 24, 2022, 10:58pm UTC](https://community.glideapps.com/t/create-n-row/41187/1 "2022-04-24T22:58:40Z")

</div>

Hey guys I’m trying to make a fashion product upload form. I want the user to be able to select sizes and colors and then through a “Create variants” button all the options are shown in the form with the possibility of adding stock.

for example:

colour 1 / size 1 / stock\_input  
colour 1 / size 2 / stock\_input  
colour 2 / size 1 / stock\_input  
colour 2 / size 2 / stock\_input

I tried taking the total of variants and then I tried to do a “FOR” to add the number of rows corresponding to the number of variants but I couldn’t find the way.

Do you guys have any solution?

Thank you very much for your time!

---

<div class="post-metadata">

**Author:** ![DarrenHumphries](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darrenhumphries/32/91715_2.png) [@DarrenHumphries](https://community.glideapps.com/u/DarrenHumphries)\
**Post date:** [April 24, 2022, 11:36pm UTC](https://community.glideapps.com/t/create-n-row/41187/2 "2022-04-24T23:36:22Z")

</div>

To clarify, this is something that people can add stock or you want this as a way for people to buy currently available options?

---

<div class="post-metadata">

**Author:** ![David\_Cura](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_cura/32/37628_2.png) [@David\_Cura](https://community.glideapps.com/u/David_Cura)\
**Post date:** [April 25, 2022, 2:16am UTC](https://community.glideapps.com/t/create-n-row/41187/3 "2022-04-25T02:16:42Z")

</div>

It would be so that a seller can upload products with variants

---

<div class="post-metadata">

**Author:** ![DarrenHumphries](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darrenhumphries/32/91715_2.png) [@DarrenHumphries](https://community.glideapps.com/u/DarrenHumphries)\
**Post date:** [April 27, 2022, 3:28pm UTC](https://community.glideapps.com/t/create-n-row/41187/4 "2022-04-27T15:28:00Z")

</div>

I would just have all the elements on the same row as the product itself and then for search purposes (for the buyer) you could combine all those variables into an array.

---

<div class="post-metadata">

**Author:** ![David\_Cura](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_cura/32/37628_2.png) [@David\_Cura](https://community.glideapps.com/u/David_Cura)\
**Post date:** [April 27, 2022, 5:37pm UTC](https://community.glideapps.com/t/create-n-row/41187/5 "2022-04-27T17:37:38Z")

</div>

It is not possible to have all the elements in the same row because the variants are not predictable. The combinations are too many. That is why the rows must be created one for each variant and at the same time to then complete Size, color, photo and stock.

---

<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:** [April 28, 2022, 12:11am UTC](https://community.glideapps.com/t/create-n-row/41187/6 "2022-04-28T00:11:21Z")

</div>

If you want to have each combination of colour & size in a row, then you can do as below:

- Create a custom form, to make it easier for this entry step I would advise only taking in the colour & size, images & stock will be input later when the variants have been created.

> [@How do I create a custom form?](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014):
>
> I’m just dropping this here so I have something to refer people to when they ask. This is a simple concept app (copyable), that demonstrates the following techniques: Building custom forms for adding and editing list items (as an alternative to the native forms provided by Glide) Preventing duplicate new entries using [User Specific Columns](https://docs.glideapps.com/all/reference/data-editor/user-specific-columns) and [Relations](https://docs.glideapps.com/all/reference/data-editor/computed-columns/relation-column) Enforcing mandatory input items The use of visibility conditions and user specific booleans to control user flow There is nothing particula…

- Allow sellers to enter a comma-delimited list of colours.

- Allow sellers to enter a comma-delimited list of sizes.

- Pass those two lists through a webhook to Make/Integromat.

- Run an iterator through a split function on the colours.

- Connect the iterator above through a split function on the sizes.

- Add an “Add row” (Google Sheets) module and add the current iteration’s value of colour and size as a row.

- Tell sellers their products can only be shown when stock and photo is not empty so they have to input them later when the variants have been created.

---

<div class="post-metadata">

**Author:** ![David\_Cura](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_cura/32/37628_2.png) [@David\_Cura](https://community.glideapps.com/u/David_Cura)\
**Post date:** [April 28, 2022, 3:49am UTC](https://community.glideapps.com/t/create-n-row/41187/7 "2022-04-28T03:49:13Z")

</div>

Thank you very much for the suggestions. I’ve been using glide for 2 weeks, I still don’t have a good level to carry out this integration but I’ll try it later.
