# Autofill choice when approaching custom form from detail page

**URL:** <https://community.glideapps.com/t/autofill-choice-when-approaching-custom-form-from-detail-page/74263>\
**Category:** Ask for Help\
**Created:** [June 20, 2024, 11:42am UTC](https://community.glideapps.com/t/autofill-choice-when-approaching-custom-form-from-detail-page/74263 "2024-06-20T11:42:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Gestels](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tim_gestels/32/44044_2.png) [@Tim\_Gestels](https://community.glideapps.com/u/Tim_Gestels)\
**Post date:** [June 20, 2024, 11:42am UTC](https://community.glideapps.com/t/autofill-choice-when-approaching-custom-form-from-detail-page/74263/1 "2024-06-20T11:42:39Z")

</div>

I have a list of Trips to which I want to link Expenses.

To upload the expenses, I created a ‘New Expense Multistep Form’ based on a ‘user-specific helper table’. This setup is necessary because the form uses some more complex AI functionality.

In the form, the user needs to select their trip from a dropdown/choice component.

However, I wonder if it’s possible to select the trip automatically when the form is accessed via the Trips detail page.

Currently, I have a button on the Trips detail page that navigates to the ‘New Expense Form’ screen, but the user still needs to select the trip again manually.

I could create a custom action that logs the TripId in the user’s table and then fetches it in the custom form to make a suggestion, but I can’t actually fill the fields in the table and this approach seems quite cumbersome to me.

What would be the best way to achieve this?

Your insights would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [June 20, 2024, 11:50am UTC](https://community.glideapps.com/t/autofill-choice-when-approaching-custom-form-from-detail-page/74263/2 "2024-06-20T11:50:24Z")

</div>

On the button from the trip details page add a set column values to the action sequence and set the value of the choice component and… Happy Cake Day!

---

<div class="post-metadata">

**Author:** ![Tim\_Gestels](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tim_gestels/32/44044_2.png) [@Tim\_Gestels](https://community.glideapps.com/u/Tim_Gestels)\
**Post date:** [June 20, 2024, 12:28pm UTC](https://community.glideapps.com/t/autofill-choice-when-approaching-custom-form-from-detail-page/74263/3 "2024-06-20T12:28:35Z")

</div>

Hi Eric,

I see indeed that I can create a relation between my details table and my helper table and then select that table to update in the set column values.  
I maybe wrong but I seem to remember it wasn’t possible a while ago to set column values of other tables than the current selected table/column or the user profile.

But my issue is resolved many thanks for pointing out! 🙂

Tim

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [June 20, 2024, 12:38pm UTC](https://community.glideapps.com/t/autofill-choice-when-approaching-custom-form-from-detail-page/74263/4 "2024-06-20T12:38:03Z")

</div>

Glad I could help. It has pretty much always worked through a SINGLE relation… the key being SINGLE.

---

<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:** [June 27, 2024, 12:38pm UTC](https://community.glideapps.com/t/autofill-choice-when-approaching-custom-form-from-detail-page/74263/5 "2024-06-27T12:38:53Z")

</div>

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