# Data source for a field

**URL:** <https://community.glideapps.com/t/data-source-for-a-field/70077>\
**Category:** Ask for Help\
**Created:** [January 26, 2024, 4:16pm UTC](https://community.glideapps.com/t/data-source-for-a-field/70077 "2024-01-26T16:16:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathieu\_Gomez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mathieu_gomez/32/61057_2.png) [@Mathieu\_Gomez](https://community.glideapps.com/u/Mathieu_Gomez)\
**Post date:** [January 26, 2024, 4:16pm UTC](https://community.glideapps.com/t/data-source-for-a-field/70077/1 "2024-01-26T16:16:44Z")

</div>

I added a ‘text entry’ component in my app, but it is linked to the user profile table. I would like it to be linked to another of my tables - but I cannot find how to do it. See attached picture.  
Thank you

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/0/d078e054e99e43a6a574a9eafdad0772d77b59df.png)

---

<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 26, 2024, 4:28pm UTC](https://community.glideapps.com/t/data-source-for-a-field/70077/2 "2024-01-26T16:28:02Z")

</div>

Is your Name component supposed to be inside the form container? Based on the indentation, I can see that it is outside the container. You need to drag it inside.

---

<div class="post-metadata">

**Author:** ![Mathieu\_Gomez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mathieu_gomez/32/61057_2.png) [@Mathieu\_Gomez](https://community.glideapps.com/u/Mathieu_Gomez)\
**Post date:** [January 26, 2024, 4:31pm UTC](https://community.glideapps.com/t/data-source-for-a-field/70077/3 "2024-01-26T16:31:17Z")

</div>

Sorry yes, I saw that you can do it when the field is in the container. Is that the only way to change the source? Why is the text entry field automatically linked to the user profile and cannot be changed? Or am I looking at it the wrong way?

---

<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 26, 2024, 4:37pm UTC](https://community.glideapps.com/t/data-source-for-a-field/70077/4 "2024-01-26T16:37:22Z")

</div>

The entry component is linked to whatever table the screen is linked to. I assume your tab is sourced from the User table, so any component on the screen will be linked to values in the user table. The form container is special though and becomes linked to whichever table your form is adding rows to. So if you move the Name component inside the form container, it then links to the form table instead of the user table.

---

<div class="post-metadata">

**Author:** ![Mathieu\_Gomez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mathieu_gomez/32/61057_2.png) [@Mathieu\_Gomez](https://community.glideapps.com/u/Mathieu_Gomez)\
**Post date:** [January 26, 2024, 4:56pm UTC](https://community.glideapps.com/t/data-source-for-a-field/70077/5 "2024-01-26T16:56:59Z")

</div>

Oh man I must have missed that part in the videos. "a component is linked to whatever table the screen is linked to’. That was going to be the next question - why are my fields only linked to a specific table, where is this coming from. Now I get it.  
And the form container allows you to bypass that.

Actually one more question, if I want to show (not ‘enter’) fields coming from different tables on the same screen, I need to create a collection as it gives me the option to select the source - any other recommended options?

---

<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 26, 2024, 5:13pm UTC](https://community.glideapps.com/t/data-source-for-a-field/70077/6 "2024-01-26T17:13:26Z")

</div>

A collection is one option. Another option is to use Relations/Lookups or Query/Single Value combinations to retrieve values from other tables. Or simply just Single Value columns on their own.

Note that Relations and Queries won’t work inside of a form because data isn’t written to a table until you click on submit.

---

<div class="post-metadata">

**Author:** ![Mathieu\_Gomez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mathieu_gomez/32/61057_2.png) [@Mathieu\_Gomez](https://community.glideapps.com/u/Mathieu_Gomez)\
**Post date:** [January 26, 2024, 5:34pm UTC](https://community.glideapps.com/t/data-source-for-a-field/70077/7 "2024-01-26T17:34:36Z")

</div>

Thanks. I think I see what you mean. I need to spend a bit more time on relations/lookup - but that’d be easier to visualise once I actually reach that stage on my app.  
Cheers!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [February 2, 2024, 5:35pm UTC](https://community.glideapps.com/t/data-source-for-a-field/70077/8 "2024-02-02T17:35:31Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
