# Automatic form filling if the user selects the first component

**URL:** https://community.glideapps.com/t/automatic-form-filling-if-the-user-selects-the-first-component/67824
**Category:** Ask for Help
**Created:** [November 15, 2023, 1:42pm UTC](https://community.glideapps.com/t/automatic-form-filling-if-the-user-selects-the-first-component/67824 "2023-11-15T13:42:09Z")
**Posts on this page:** 1
**Showing post:** 2

<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 15, 2023, 11:43pm UTC](https://community.glideapps.com/t/automatic-form-filling-if-the-user-selects-the-first-component/67824/2 "2023-11-15T23:43:11Z")

</div>

Do you mean you want to show that right in the form? That’s not possible, because you don’t have access to that unit number value to create a relation.

I would suggest creating a custom form that:

- Writes the unit number to a user-specific column.
- Use relations & lookups to retrieve the tenant name and amount values.
- If you want users to edit the name & amount, create a button that write the lookup values to 2 user-specific columns, and add entry components for them on the screen.

> [@How do I create a custom form?](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014):
>
> I’m just dropping this here so I have something to refer people to when they ask. This is a simple concept app (copyable), that demonstrates the following techniques: Building custom forms for adding and editing list items (as an alternative to the native forms provided by Glide) Preventing duplicate new entries using [User Specific Columns](https://docs.glideapps.com/all/reference/data-editor/user-specific-columns) and [Relations](https://docs.glideapps.com/all/reference/data-editor/computed-columns/relation-column) Enforcing mandatory input items The use of visibility conditions and user specific booleans to control user flow There is nothing particula…

---

_[View the full topic](https://community.glideapps.com/t/automatic-form-filling-if-the-user-selects-the-first-component/67824)._
