Firebase Auth, Firestore & Storage (plugin)
  • 🚀Getting Started
  • Setup
    • Create a Firebase Project
    • Get Firebase access credentials
    • Offline Support
    • Secure your credentials and data
      • Restrict your api-key to your domain
      • Security Rules on Firebase
  • Plugin Elements
    • 🛠️About elements
    • 💾Data Schemas
    • Firebase Auth (Current User)
    • Firestore Data List
      • Firebase Geohash
      • Firestore Data (legacy)
    • Firestore Data Extractor
    • Firestore Data Single
    • Firestore Data Aggregation
    • Firestore Data Processor
    • Firebase Storage Upload Button
    • Firebase Action Listener
    • Firebase Dropdown Processor
  • Plugin Front-end Actions
    • 💻About front-end actions
    • 💾Field types table
    • Firestore
      • Create a new document
      • Update a document
      • Delete a document
      • Update a list of documents
      • Delete a list of documents
      • Batch Operations
        • Batch Operation Constructor
        • Batch Operation Commit
    • Firebase Auth
      • Sign the User Up
      • Log the User In
      • Log the User In with Google
      • Log the User In with Facebook
      • Log the User In with GitHub
      • Log the User Out
      • Update User's Profile
      • Update User's Password
      • Update User's Email
      • Send password reset email
        • Handle reset password code
      • Send verification email
        • Handle verify email code
      • Delete current user
    • Firebase Storage
      • Upload file base64
      • Delete uploaded file
  • Plugin Back-end Actions
    • ☁️About backend actions
    • Firestore Backend
      • Get a list of documents
      • Get a single document
      • Count a list of documents
      • Create a new document
      • Update a document
      • Delete a document
      • Update a list of documents
      • Delete a list of documents
    • Firebase Auth Backend
      • Create an account for someone else
      • Update another user's profile info
      • Delete a user account
      • Generate email confirmation link
      • Generate password reset link
      • Set user roles
Powered by GitBook
On this page
  • Settings
  • Choices
  • Dropdown ID
  • Field to Display
  • Complex Display (advanced)
  • States and Values
  • Choices
  1. Plugin Elements

Firebase Dropdown Processor

PreviousFirebase Action ListenerNextAbout front-end actions

Last updated 11 months ago

The issue related to this element can also be solved with the new feature.

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

For instante, in our 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 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

Dropdown ID

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

IMPORTANT! For the processing of the Dropdown to work, it is necessary the dropdown is visible at the same time the Dropdown Processor is. So it is good practice to make this element conditional visibility attached to the dropdown's visibility.

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)".

If both the "field to display" and "complex display" are set, this option will be ignored.

This is an advanced feature, since it uses Javascript to get the fields to show. You might have to deal with situations in which the data you want to display is not a string/text.

For instance, if you try to display the "due_date" field of a task, it will show [object Object], since its a JSON object.

If you're insecure with javascript, we suggest sticking with string/text fields on the Complex Display feature.


States and Values

Choices

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

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

Firestire Data
Data Schemas
Task Manager Sample
Data extractor