Dropdown Values Table Level

Hello everyone! Glad to be part of Retool Community, as I will continously be working with it. I actually just started yesterday and I am struggling a little bit with dropdown options in the table component.

I want to create two columns in my table as dropdown menus, where the second column takes dynamic values, so dependant on the values that the first column takes. Having the data is not a problem, because I have a json object with keys representing values of the first column and values representing the values of the second one.

The problem initially begins when i configure the options for the first column.

I can populate the Mapped Options with my Array data, but apparently, when I click I cant see nothing.

And if this problem will be solved, how can I create a dropdown menu of the second column, depending on the values of the first one?

I would really appreciate your help :slight_smile:

Hey @Gerti_Sana! Welcome to the retool community!

You can use tags as a column type for this, and for the first column you will use the mapped array from the database to populate the values


You can also make it editable so you can change the values if you need to.

The second column you can also use tags, but data source for this will be the values that are based on the first column.


You can use selectedSourceRow to reference the values from the same row. In the second column in mapped options you can use something like {{table1.selectedSourceRow.firstColumn}}

Hope this helps!

3 Likes

I actually solved it, by using legacy tables. I just enabled the usage of Beta components. Thanks a lot for your help, I really appreciate it :slight_smile: