Need help in getting title fetched into container

Hi Guys,

I have a detail page in my app which has “Creator Name”

In the same detail page I have added a container which is pointing to relationship column getting values from different table.

When I select the item and get to detail page I see the “Creator Name”

I want the same value to be pre selected in my containers Choice field as well. Is there a way I can do it?

Please refer to screenshot below.

Top is the Name of creator in detail page.

I want the same creator name to be pre selected in second encircled portion as shown in the screenshot.

Thank you in advance.

Regards,
Dilip

That looks like a Custom Form?

Which would mean that Choice component is targeted at a User Specific column, yes?

Assuming yes, then all you need to is write a value into that column as the screen is opened. That is, change the default item click action to a custom action that first does a set column values, and then a show details screen.

I am little lost, Could you elaborate on this?

Sorry New be problem.

Regards,
Dilip

Can you confirm my first two assumptions?

  1. It is a custom form yes.
  2. Choice component takes values from a specific column. It is not User specific but it is from different column.

Regards,
Dilip

Yes, but where is the selected choice being written to?
What I was getting at earlier is that to set the default, all you need to do is write the appropriate value into the target column of your choice component as you navigate to the parent screen.

Hi Darren,

My choice component are coming from two tables.

Firstly there is detail page as you seen in screenshot above → it has value coming from “Table 1” -----> it has the title as circled above.

Secondly the same detail page as a container which has another list view component which has values coming from “Table2” ----> it has circle as circled below.

While title exists in Table 1. Same Title may or mayn’t be in Table 2.

Meaning I write values to Table 2 Via the form entry I do in the second container present in the detail page.

To answer your question the choice which takes value as per title from top circled portion is written to Table 2

This should happen only when filing the form. Not when clicked on Listview item.

Hope this provided better clarity ?

Thank you for replying as always!

Regards,
Dilip

Can you create a single relation from table 1 to table 2?
If yes, you can write the value via that relation as you enter the screen that sits on table 1.

Hi Darren,

Yes I created a single relation from Table 1 to Table 2.

I have done this to display only related values in list view.

How can I write value via that relation ?

Regards,
Dilip

Referring to your very first screenshot, there is a back arrow at the top left.
Click on that arrow to go back.
I assume that will take you back to a collection.
On that collection there will be an Item Click action - most likely Show Details Screen → This item
Change that action to a custom action.

  • Step 1: Set Column Values → Single Relation → Creator Name → User Specific Column (the one the choice writes to)
  • Step 2: Show Details Screen → This item

Hi Darren,

I am slightly confused.

Sharing my screen recording with you for reference.

The first screen is the listing screen —> When I click on the list view items it takes me to Detail page which has title coming from Table 1

Now if you see in detail screen there is a + button next to “Brand Conversation” title when I click on the plus button it should take the title from the Table 2

It is a new component added thus referencing things table 2

My single relation column is in Table 1

Plus when I create custom action, My Choice component is not shown where I can set the value. Any specific reason?

i…e. detail screen from previous click.

Regards,
Dilip

@Darren_Murphy Sorry I had put a wrong screen recording. Have put an updated one.

arrrg - it’s not a Custom Form at all. All this time I’ve been assuming that it was.

Okay - different approach needed.
Create a column in your User Profile row to hold a temporary value, then write the name into that column as you enter the first screen. You should then be able to use that as a default value in your Form.

See below:

I just looked at your updated recording. My answer is the same.

Hi Darren,

I got it to work for one of the apps. This app is writing to Text field.

The other app is connected to airtable and column to which the selected value is written is a “Link to another table” data type. It doesn’t let me select default value.

I guess need to think of some workaround for it.

DO you have any solution?

Regards,
Dilip

Not for Airtable, no.
Never used it :man_shrugging:t3:

I figured out a workaround by doin an automation in Airtable.

Thank you Darren.

Regards,
Dilip

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