Use drop-down to return result from data

Hi,
First post in the forum, new Bubble user so apologies for the simple question!

I’m trying to use a dropdown list to return a value. I’d use an ‘if’ statement in Excel, can’t figure out how to make it work here. I’ve created a data type called ‘Risk Ratings’ and created fields of ‘Descriptor’ and ‘Value’ I want the dropdown to contain the ‘Descriptor’ and when selected the corresponding ‘Value’ to be returned as a text/number on the page.

Data

Page

Thank you!

Set the data source of the dropdown to Risk Ratings
In the option to show in the dropdown, select the Descriptor field
Add a text element with its data source set to your Dropdown’s current value’s (Risk Rating) Value

Thanks for the reply Zeroic, got it working. Much appreciated!

1 Like