# Using value in one component to set value of another component

**URL:** <https://community.glideapps.com/t/using-value-in-one-component-to-set-value-of-another-component/69836>\
**Category:** Ask for Help\
**Created:** [January 22, 2024, 1:20am UTC](https://community.glideapps.com/t/using-value-in-one-component-to-set-value-of-another-component/69836 "2024-01-22T01:20:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JJ-in-Jersey](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@JJ-in-Jersey](https://community.glideapps.com/u/JJ-in-Jersey)\
**Post date:** [January 22, 2024, 1:20am UTC](https://community.glideapps.com/t/using-value-in-one-component-to-set-value-of-another-component/69836/1 "2024-01-22T01:20:06Z")

</div>

Hi all,

I am working on a navigation app. On a tab screen, the user can select a route. Each route can be travelled in 2 directions. I’d like to populate 2 buttons on the screen based on the route selected. Some go N-S, some go E-W, etc. It will allow the user to indicate which way their traversing the route.

all help appreciated

JJ

---

<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:** [January 22, 2024, 1:22am UTC](https://community.glideapps.com/t/using-value-in-one-component-to-set-value-of-another-component/69836/2 "2024-01-22T01:22:26Z")

</div>

Sounds like you want either a choice component/action row/button block that writes to a user specific column, then use the value written in whatever table logic is required.

---

<div class="post-metadata">

**Author:** ![JJ-in-Jersey](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@JJ-in-Jersey](https://community.glideapps.com/u/JJ-in-Jersey)\
**Post date:** [January 22, 2024, 3:39am UTC](https://community.glideapps.com/t/using-value-in-one-component-to-set-value-of-another-component/69836/3 "2024-01-22T03:39:48Z")

</div>

When does the data get written? If the choices are in a form, it’s on submit. If not in a form, when does the data get written?

I’d been struggling because the value I need to lookup isn’t in the table until after submit.

---

<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:** [January 22, 2024, 3:43am UTC](https://community.glideapps.com/t/using-value-in-one-component-to-set-value-of-another-component/69836/4 "2024-01-22T03:43:24Z")

</div>

Yes, when using a form the values aren’t written until after submit.

But based on your earlier description, should you be actually using a form? A form will add a new row - is that what you want?

Perhaps I’m not understanding your goal. A screen shot or two might help provide a better visual.

---

<div class="post-metadata">

**Author:** ![JJ-in-Jersey](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@JJ-in-Jersey](https://community.glideapps.com/u/JJ-in-Jersey)\
**Post date:** [January 23, 2024, 12:25am UTC](https://community.glideapps.com/t/using-value-in-one-component-to-set-value-of-another-component/69836/5 "2024-01-23T00:25:10Z")

</div>

So are non-form components committed or written when they’re filled out?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [January 23, 2024, 12:42am UTC](https://community.glideapps.com/t/using-value-in-one-component-to-set-value-of-another-component/69836/6 "2024-01-23T00:42:43Z")

</div>

Yes, if you are not in a native form, then changes are updated almost instantly in the table as soon as you change the value.
