# Copy input textfield to other textfield

**URL:** <https://community.glideapps.com/t/copy-input-textfield-to-other-textfield/35025>\
**Category:** Ask for Help\
**Created:** [November 24, 2021, 7:26pm UTC](https://community.glideapps.com/t/copy-input-textfield-to-other-textfield/35025 "2021-11-24T19:26:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzsadiek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mzsadiek/32/36021_2.png) [@mzsadiek](https://community.glideapps.com/u/mzsadiek)\
**Post date:** [November 24, 2021, 7:26pm UTC](https://community.glideapps.com/t/copy-input-textfield-to-other-textfield/35025/1 "2021-11-24T19:26:12Z")

</div>

Hi!

In my form in my Glide App, I have 2 e-mail fields. By default, the second one should contain the same value filled in the first field. The second field is invisible by default and becomes visible when a switch is checked, to fill in a different value.

To get the same value in the second e-mail field by default, I did this as a custom action. But it does not work, the value stays empty upon submission. What should I change to achieve what I want?

![Schermafbeelding 2021-11-24 om 20.21.42](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/f/3fd7efcdd9a4f832116be59383dca91c504cde23.png)

---

<div class="post-metadata">

**Author:** ![mzsadiek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mzsadiek/32/36021_2.png) [@mzsadiek](https://community.glideapps.com/u/mzsadiek)\
**Post date:** [November 24, 2021, 9:18pm UTC](https://community.glideapps.com/t/copy-input-textfield-to-other-textfield/35025/2 "2021-11-24T21:18:21Z")

</div>

I’ve used Zapier for a workaround, but if there is any possibility to fix this within Glide, that would be great.

---

<div class="post-metadata">

**Author:** ![Mozza](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mozza/32/34362_2.png) [@Mozza](https://community.glideapps.com/u/Mozza)\
**Post date:** [November 24, 2021, 9:30pm UTC](https://community.glideapps.com/t/copy-input-textfield-to-other-textfield/35025/3 "2021-11-24T21:30:53Z")

</div>

Hi.  
If your second email column is the same as the first one by default, will it stay like that forever, or in some cases user will be able to change one of them? Because, if it will always be the same, why have two email columns that are identical.

---

<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:** [November 25, 2021, 12:00am UTC](https://community.glideapps.com/t/copy-input-textfield-to-other-textfield/35025/4 "2021-11-25T00:00:41Z")

</div>

The row isn’t created in time for the set column action, I have seen this a lot of times.

An alternative for you is in the inline list that links to this table, you add two logic branches like this:

- If email 2 is empty then set column email 1 to email 2, then show details screen.
- Else show details screen.

---

<div class="post-metadata">

**Author:** ![mzsadiek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mzsadiek/32/36021_2.png) [@mzsadiek](https://community.glideapps.com/u/mzsadiek)\
**Post date:** [November 25, 2021, 9:56am UTC](https://community.glideapps.com/t/copy-input-textfield-to-other-textfield/35025/5 "2021-11-25T09:56:21Z")

</div>

In case the switch is switched off, the fields are the same. In case the switch is switched on, then they are not the same

---

<div class="post-metadata">

**Author:** ![mzsadiek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mzsadiek/32/36021_2.png) [@mzsadiek](https://community.glideapps.com/u/mzsadiek)\
**Post date:** [November 25, 2021, 9:56am UTC](https://community.glideapps.com/t/copy-input-textfield-to-other-textfield/35025/6 "2021-11-25T09:56:58Z")

</div>

Would this logic branch be to have extra time, so the row is already created?

---

<div class="post-metadata">

**Author:** ![Mozza](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mozza/32/34362_2.png) [@Mozza](https://community.glideapps.com/u/Mozza)\
**Post date:** [November 25, 2021, 10:13am UTC](https://community.glideapps.com/t/copy-input-textfield-to-other-textfield/35025/7 "2021-11-25T10:13:05Z")

</div>

Sorry, not truly sure about your switching logic so I will not try to resolve it anymore. I don’t want to bring any confusion 😄  
Only, the thing @ThinhDinh mentioned, I think that you are trying to set column value to an existing row so that should not be a problem. That row is already present.

---

<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:** [November 25, 2021, 11:51pm UTC](https://community.glideapps.com/t/copy-input-textfield-to-other-textfield/35025/8 "2021-11-25T23:51:20Z")

</div>

> [@Mozza](#):
>
> I think that you are trying to set column value to an existing row so that should not be a problem. That row is already present.

This is true. The action to add the row does not relate to the setting value flow in my method. That row is already created, and you leverage the action to open the row’s details view to set a value to that row.
