# Can you create 2 rows from one form

**URL:** <https://community.glideapps.com/t/can-you-create-2-rows-from-one-form/38743>\
**Category:** Ask for Help\
**Created:** [February 20, 2022, 4:03pm UTC](https://community.glideapps.com/t/can-you-create-2-rows-from-one-form/38743 "2022-02-20T16:03:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [February 20, 2022, 4:03pm UTC](https://community.glideapps.com/t/can-you-create-2-rows-from-one-form/38743/1 "2022-02-20T16:03:27Z")

</div>

I have an app that does a shuttle/taxi service. When booking the trip I want to be able to select if this is a roundtrip and if so then I want to just get the return date/time to create a second entry/row.

I want to use all the data from the master job (name, locations (reversed), contact number, charge/payment details etc…

---

<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:** [February 20, 2022, 4:15pm UTC](https://community.glideapps.com/t/can-you-create-2-rows-from-one-form/38743/2 "2022-02-20T16:15:45Z")

</div>

Assuming that you’re using a native form screen, you could have an on submit action that conditionally adds a second row. Although I’ve not tried this myself, I believe the data from the row that’s been added by the form should be available.

Failing that, it would definitely be possible with a custom form.

---

<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:** [February 21, 2022, 12:53am UTC](https://community.glideapps.com/t/can-you-create-2-rows-from-one-form/38743/3 "2022-02-21T00:53:11Z")

</div>

> [@Darren\_Murphy](#):
>
> Although I’ve not tried this myself, I believe the data from the row that’s been added by the form should be available.

It should be available and pretty reliable, as long as you don’t add some experimental column values through the “on submit” action.

---

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [February 21, 2022, 1:35am UTC](https://community.glideapps.com/t/can-you-create-2-rows-from-one-form/38743/4 "2022-02-21T01:35:01Z")

</div>

Thanks Darren and Thinh.

This worked perfectly it was simple. Actually I had been suffering in pain not realizing you can modify the standard submit action 🙂

I added the set values action to set all the values for my current row then added the “add row” action, which once you click you get to choose all the fields in the row again and I was able to switch the data around here.

Thanks

---

<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:** [February 21, 2022, 1:36am UTC](https://community.glideapps.com/t/can-you-create-2-rows-from-one-form/38743/5 "2022-02-21T01:36:05Z")

</div>

> [@Dan\_San](#):
>
> I added the set values action to set all the values for my current row

Do you mean the original row you are writing through the form? You shouldn’t have to do that, since Glide already writes that row for you.

---

<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:** [February 21, 2022, 1:56am UTC](https://community.glideapps.com/t/can-you-create-2-rows-from-one-form/38743/6 "2022-02-21T01:56:51Z")

</div>

> [@Dan\_San](#):
>
> Actually I had been suffering in pain not realizing you can modify the standard submit action

Note that adding an on submit action is not modifying anything.  
The form screen will still add a new row, regardless of any on submit action that you define.  
So when you add an on submit action, rather than modifying any existing action, what you are doing is creating an _additional_ action.

Might seem like splitting hairs or word semantics, but it’s a very important distinction to understand.

---

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [February 21, 2022, 2:44am UTC](https://community.glideapps.com/t/can-you-create-2-rows-from-one-form/38743/7 "2022-02-21T02:44:10Z")

</div>

Hi Thinh,

Can you clarify please. In my action here

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/2/a2a76a8322600dc7981f83b3da9342387d438330.png)

I did the Set Column Values to do what the original submit would do, are you saying that if I did not do this then the row would still be added and the second row would be added by the “Add Row” action ?

---

<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:** [February 21, 2022, 2:53am UTC](https://community.glideapps.com/t/can-you-create-2-rows-from-one-form/38743/8 "2022-02-21T02:53:20Z")

</div>

Correct.

Your Set Columns action is superfluous in this case, and the “else” part of your action sequence isn’t required.

---

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [February 21, 2022, 4:43am UTC](https://community.glideapps.com/t/can-you-create-2-rows-from-one-form/38743/9 "2022-02-21T04:43:42Z")

</div>

Thanks guys… This is great

I have about 120 columns that I had set 3 times… and I was worried about keep it all synced as I add more columns…
