*Another* populate dropdown, based on another's dropdown (value list)

:slight_smile: i,

I’m pretty new into Bubble and have I’ve already viewed tons of videos and searched allot (also learned allot) in the forum and the internet but couldn’t find any solution for the described problem :pensive:
At first I tought it should be rather easy fixable, but I keep on struggling.

I try to explain as good as possible:
I’m building a webshop for ordering wires. Each wire can be configured before it goes into the shopping cart, there are restrictions needed in the configuration.

There are 2 databases where I get info from:
*Wire database
*Termination database

On my input page, I’ve a dropdown where a user can select the wire type, on the left and right of that dropdown I’ve 2 other dropdown’s: Termination A and Termination B.

In the wire type dropdown, the wire database is linked, at each wire there’s a cross section defined (number value).

In the termination dropdown’s, the termination database is linked, at each termination, there’s a list of possible cross sections (number value, coming from an option set).
I called this field “cross section constraints”, since it’s only possible to use the termination for a certain amount of cross sections.

In my input page, I see the correct information in the 3 dropdown’s.

If a certain wire is chosen, there’s also a cross section chosen on the background. I tried various things and eventually thought it was a good idea to store the cross section as a state (number) on the wire dropdown, but I don’t seem able to acces this so I might delete this functionality.

Now comes the issue:
If a wire is chosen, I want to limit/filter the visible terminations on the termination dropdown’s.
Since each termination has a list of cross sections constraints, I thought I could match this in a filter defined by the wire’s cross section. But it’s not possible, I don’t know why (I really tried allot with do a search for and other stuff, but couldn’t find out what the issue is).

Some printscreens:




Scherm­afbeelding 2024-08-03 om 16.15.32


Any help in the right direction would be much appreciated :slight_smile:

While re-reading my topic, I found out that the option set comparison might not be possible because I have only display names there.

I’m adding a number as attribute and keep this updated :slight_smile:

edit:
no solution. it was working before if I chose a certain fixed option in the filter. But I want to have it dynamical


Scherm­afbeelding 2024-08-03 om 16.38.31

Ugh…

Had it working now by using the custom state of the page…

This topic was automatically closed after 70 days. New replies are no longer allowed.