Firebase Dropdown Processor

On Bubble, we might often want to provide data to a dropdown that represents an entire document,

For instante, in our Task Manager Sample app, suppose we want to choose tasks from a dropdown show the content of the chosem task in a group. Although we could feed the list of tasks to the dropdown, choose a document and use the Data extractor to get it's contents, the dropdown would show the entire JSON object structure as a text on its options, which is not good user experience.

Intead, we'd want to show a single field for the user to choose from. That's what the Firebase Dropdown Processor does.


Settings

Choices

The list of documents you you'll display on the dropdown. (e.g. a list of document data from a Firestire Data element).

The ID Attribute of the dropdown in which you'll display the data.

Field to Display

The name or path of the field you want to display on the dropdown.

In our example, we chose to display the "description" field.

Complex Display (advanced)

Use this to display data in a "complex" way, using "${doc.field}" to indicate each fields you want to display. For instance: "${doc.name} (${doc.email})" will display the name and the email field like "John (john@email.com)".


States and Values

Choices

The Dropdown Processor element has only one state: the choices to be fed into the dropdown you're processing.

Last updated