# Conditional Add Rows

**URL:** <https://community.glideapps.com/t/conditional-add-rows/70726>\
**Category:** Ask for Help\
**Created:** [February 11, 2024, 9:00pm UTC](https://community.glideapps.com/t/conditional-add-rows/70726 "2024-02-11T21:00:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aurelien\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aurelien_m/32/48214_2.png) [@Aurelien\_M](https://community.glideapps.com/u/Aurelien_M)\
**Post date:** [February 11, 2024, 9:00pm UTC](https://community.glideapps.com/t/conditional-add-rows/70726/1 "2024-02-11T21:00:56Z")

</div>

Hello,

I created an app with a flow, that is a long series of if then elses and built like a long custom form.

At the end of this flow, I need to add rows to an Airtable table.

The tricky part is that depending on criterias of the long form, I need to add from 1 to 6 rows with 2 types of rows. So it means that on the submit button of the form i need to create a custom action with 12 branches (if criteria 1 is met and criteria 2 is met then…), and several actions under these 12 ifs.

It makes a super complicated action, which makes my app super slow.

I don’t see any ETA on if conditions in the middle of an action tree. Do you have any idea on how to avoid this big mess?

Thanks a lot

---

<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:** [February 11, 2024, 9:18pm UTC](https://community.glideapps.com/t/conditional-add-rows/70726/2 "2024-02-11T21:18:02Z")

</div>

You’ll soon be able to do this within Glide (give it a couple months). Until then, anytime I hear someone asking for a dynamic amount of added rows, the first thing that comes to mind is to ultimately create a json object that contains each row’s worth of data in an array and send that to [Make](https://www.make.com/en/register?pc=robert) via a webhook so that you can send it back to Glide using the Glide API.

---

<div class="post-metadata">

**Author:** ![Aurelien\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aurelien_m/32/48214_2.png) [@Aurelien\_M](https://community.glideapps.com/u/Aurelien_M)\
**Post date:** [February 14, 2024, 9:46am UTC](https://community.glideapps.com/t/conditional-add-rows/70726/3 "2024-02-14T09:46:37Z")

</div>

Okay great, thanks Robert!

Could describe a bit how you would do that? (or is there a link to one of your great videos?)

Thanks a lot

---

<div class="post-metadata">

**Author:** ![gojko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gojko/32/83638_2.png) [@gojko](https://community.glideapps.com/u/gojko)\
**Post date:** [January 4, 2025, 6:04pm UTC](https://community.glideapps.com/t/conditional-add-rows/70726/4 "2025-01-04T18:04:23Z")

</div>

Hi,

are there any updates on dynamic adding of rows? 🙂

Thank you

---

<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, 12:35am UTC](https://community.glideapps.com/t/conditional-add-rows/70726/5 "2025-01-05T00:35:05Z")

</div>

If you want to keep it solely in Glide, I would suggest using Glide’s JSON template/JSON columns, or JavaScript to construct a HTTP call body that fits with Glide’s API.

Then, upon a button click, use the value above to add multiple rows. However, you must have access to the Call API action to do this.

An alternative is like Robert said, constructing a JSON of info for all rows you want to add (and ideally it should be the same as the HTTP call body above), then use a Trigger Webhook action to send that to a Make webhook, do a HTTP call to batch add the rows over there.

---

<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:** [January 5, 2025, 11:29pm UTC](https://community.glideapps.com/t/conditional-add-rows/70726/6 "2025-01-05T23:29:18Z")

</div>

It should be in beta sometime this month. Keep your eyes peeled!
