Bravo Studio Help Center
  • Get started with Bravo Studio 👏
  • Get Started
    • 🚀Create your first app
    • 🌟Bravo introduction
      • Get ready to create your app with ChatGPT
      • Create an app
        • Creating an app with Figma
        • Creating an app with Adobe XD
      • Duplicate an app
      • Delete an app
      • Replace linked Figma file
      • The app page
      • Sharing your app
      • Add an editor to your app
      • Fonts
        • Adobe XD - Supported fonts
    • 📱Bravo Vision previewer
    • ✨Unlock power features to create interactive apps
    • 🎓Help and tutorials
      • 📖App guide tutorials
        • Sample app tutorial: Your first binding
        • How to build a Fitness app with Bravo, Xano and RevenueCat
        • Foodgram: Social content sharing
        • Expedition journal: Write and share your adventures
        • My Subscriptions: Display data based on device ID
        • My Notes: using user ID and email from Firebase
        • My Store: Sell physical products with Bravo and Stripe
        • Titan: How to create a Smart Home App with No-Code?
        • n8n: Building an expense tracking app in 10min
      • 📺Learn with videos
      • 📚Learn with articles
      • 🗃️Browse by app feature
        • Save or "bookmark" a page
        • Backend search with Airtable
        • Backend search with Xano
        • Nested lists (list within a list)
        • Create and edit user profile (Firebase + Airtable)
        • Skeleton loader
        • Create albums in your app with Bravo Infinite images
  • Set up your design
    • 🖌️Get your Figma ready for Bravo
      • 🗃️Structuring the design: the layer hierarchy
      • 🪄Bravo Tags: adding functionality to the UI elements
      • 🧱The container
        • Setting up a container on Figma
        • Setting up a container on Adobe XD
      • 📲App navigation
        • Setting up app navigation on Figma
        • Setting up app navigation on Adobe XD
    • 🔌Bravo plugin for Figma
    • 💾Sample design files
    • 🤓Best Practices
  • App components
    • 📒Bravo Tags Master List
    • 🚪Menus
      • Modal Menu
      • Modal pages
      • Tabs Menu
      • Pop Up pages
      • Slide Menu
    • 🍞Pages
      • Modal pages
      • Pop-up pages
      • Swipe page
      • Transitions page
      • Page reveal animations
      • Page tabs
      • 🔮Stateful pages
    • 📦Containers
      • Swipe to delete
      • Top bar
      • Carousel slider
      • Aspect ratio relative to screen
      • Sortable List
      • Layer (sticky element)
    • 👋Intro & Onboarding
      • Intro page
      • Post-login page (Onboarding)
    • ⌛Loading experience
      • Loading page
      • Custom loading page
      • No loading
      • Preload
    • 📝Form & input fields
      • 👁️Password Visibility Toggle
      • 🩷Stateful input
        • ☑️Checkboxes (Multiple select)
        • ✅Required Checkbox
        • 🔘Radio buttons (Single select)
      • ⏳Input time Interval
      • 📄Dropdown selector
      • 🎚️Slider control
      • 🗓️Calendar picker
      • 📄Send form input to a database
    • 💎Components
      • Autoplay Video
      • GIF
      • SVG Component
      • Web view
      • Web Components using AI
      • Web view communication
      • LottieFile
      • Lottie-animated component
      • Flexible text (Flexo)
      • Zoomable image
      • Component states
      • Stateful component (like button)
      • Setting up the backend of Stateful component (like button)
      • Haptic Feedback (Buzzz)
      • Progress bar
      • Rich text
      • Date, Time and Currency Formatter
      • Scrollable text
      • Text Lines & Truncation
      • Status bar
    • ⚡Mobile actions
      • Mobile Actions
      • Play audio
      • Record audio
      • Play video
      • Scan QR code (external URL)
      • Scan codes (remote action)
      • Search & filter
      • Refresh page
      • Share location
    • 📱App Icon & Splash Screen
    • 🗺️Map with markers
    • 📈Charts
  • Data and Backend
    • 🗂️Set up a no-code backend
      • Xano
        • Nested lists (list > list > detail page) with Xano
        • Create a bookmark functionality with remote actions and device ID with Xano
        • Multi-user setup with Xano
        • 🔒Setting up the Xano Log in Snippet
          • ♻️Refresh Token
      • Airtable
        • Nested lists (list > list > detail page) with Airtable
        • Sort list with Airtable
        • Connect multiple tables from Airtable to one app
        • Update Airtable's API key to Access Token
      • Backendless
      • Bubble
      • Notion
        • Getting data from a Notion table
      • Firebase
        • Getting data from Firestore
    • 💾Set up API requests
      • Set up from scratch
        • Airtable
          • Set up an API GET request for list page - Airtable
          • Set up an API GET request for detail page - Airtable
          • Set up an API POST request - Airtable
          • Set up an API DELETE request - Airtable
        • Xano
          • Set up an API GET request for list page - Xano
          • Set up an API GET request for detail page - Xano
          • Set up an API PATCH request - Xano
          • Set up an API POST request - Xano
          • Set up an API DELETE request - Xano
      • Using GraphQL body type
      • Set up with API wizard & importer
        • Using the Airtable API Wizard
        • Using the Xano API wizard
    • 🎲Variables
      • Built-in variables
      • Set Variable
    • 📚Data Collection & Binding: Complete Collection
    • 🗂️Pagination
    • 🐛Debugging API issues
      • ⚙️Debugging requests in the API Collection
      • 📲Event logger
      • 🔗Link property
  • Data binding
    • 🤝Data binding types
      • API binding types
      • Bind multiple API requests to one screen
      • How to connect my API to a mobile actions
      • Remote actions: trigger an API request with a UI element
    • 💡Display data in your app
      • Bind data to design for a list page
      • Bind data to design for a detail page
    • 🆕Create data from your app
    • 🗑️Delete data from your app
    • 🚦Conditional Visibility
    • 🎛️Conditional Actions
  • Integrations & Settings
    • 🖇️Deep Links
      • 🖇️Deep Links for Bravo Vision
      • 🖇️Deep Links for published apps
      • 🖇️Troubleshooting Deep Links
    • 🔔Push Notifications with OneSignal
      • How to get a Bravo page URL
    • ⚙️Firebase Configuration
    • 🔐User Authentication
      • 🔑Authentication with Kinde and Xano
      • 🧙🏽Authentication with OAuth 2.0
        • Using social logins to authenticate users
        • Using AWS Cognito to authenticate users
        • Connecting to Spotify API
      • 📲User login with Firebase
        • ✉️Email and password Login with Firebase
        • 📞Phone Login with Firebase
        • 🍎Social Login with Firebase
        • 👻Anonymous Login with Firebase
      • ⛓️Authentication with custom backend
        • Set up Xano as your user authentication backend
    • 💰Stripe: One-time Payment
    • 💬Chat: CometChat
    • 💸RevenueCat: In-app purchases and subscriptions
    • 📉Bravo Analytics
    • 📳Facebook App Events
    • 📊Google Analytics
    • 🌐Multilingual apps
    • 🕸️How to connect with Webflow API
    • 📡NFC connection
    • 🎯Admob
  • App Publication
    • 🚀Publishing your app
      • iOS Publication: Complete Process
        • 1. Generate Certificates, AppIDs and Provisions
        • 2. Get the IPA
        • 3. Upload IPA to App Store Connect
        • 4. Test your app on TestFlight (optional)
        • 6. App Store publication
        • 7. Updating an app in the App Store
      • Android Publication: Complete Process
        • 1. Create a Keystore File (optional)
        • 2. Get the Debug APK to install
        • 3. Install the Debug APK in your device
        • 4. Get the AAB (Android App Bundle) file to publish
        • 5. Google Play publication
        • 6. Updating an app in Google Play
      • Android APK Installation Guide
      • Rejection from the app stores
    • 🎛️Making changes to your app after publication
    • 🛍️Versioning
    • 🌟App rating alert
  • Good to Know
    • 🤔Troubleshoot
      • Errors when logging in
      • Errors when creating an app
      • Errors in API requests
        • Request timeouts on Bravo
      • Errors after importing
      • Errors in publication form
    • 🧑‍💻Manage your account
    • 💳Billing
      • Bravo Subscription Plans Overview
      • App Add-ons
      • Upgrading a plan
      • Downgrading a plan
      • App allowance
      • Invoices & payment method
      • FAQ
    • ❓FAQs
      • About Bravo Studio
      • Importing a design file
      • Bravo Vision
      • Bravo Tags
      • API & Data Library
      • Login & Account
      • Other Features
  • NEED SOME HELP?
    • 📖Bravo Support Guide
    • 🤝Join the Bravo community
    • 🤖Bravo Assistant
    • 👥Production support
    • 🐞Report an issue
Powered by GitBook
On this page
  • 🎨 Design file
  • 👥 Authentication setup (Firebase)
  • 💾 Backend setup (Airtable)
  • ⚙️ API collection setup
  • Get User Profile - GET
  • Post User Profile - POST
  • Edit User Profile - PATCH
  • ⚒️ Data Binding setup
  • "user-profile" page
  • "edit-profile" page
  • 📲 Test your app in Bravo Vision!

Was this helpful?

  1. Get Started
  2. Help and tutorials
  3. Browse by app feature

Create and edit user profile (Firebase + Airtable)

Learn how to allow users to create and edit user profiles, using Firebase for authentication and Airtable as the app backend.

PreviousNested lists (list within a list)NextSkeleton loader

Last updated 11 months ago

Was this helpful?

In this tutorial, we’ll use Firebase email-based authentication combined with post-login to create a user onboarding flow, where new users can add more information about them. Also, we’ll create a page where users can edit their profile information. We’ll use Airtable as our backend to store the user information.

You can follow this tutorial step by step to create the same use case we'll be showing, and you can also adapt it to your specific app.

🎨 Design file

In this tutorial, we’ll use the Figma file below, with all the tags required to implement the and . Feel free to duplicate it and customize it as you need, before importing it into Bravo to create a new app project. You can also import it as it is.

👥 Authentication setup (Firebase)

As you’ll see, you’ll need to generate some files in Firebase and upload them to your Bravo app settings to enable Firebase authentication.

💾 Backend setup (Airtable)

In this example, we created the following fields, which match the input fields for the forms where users can create and edit the profile information:

  • Name (text field)

  • Surname (text field)

  • Age (numeric field)

  • UserID (text field)

  • Last Modified. We created this field to be able to sort the table by edit date and time. This is important in order to retrieve the correct user profile data later on.

You can duplicate the base below to get started:

https://airtable.com/appVmNCG1OLuQMiOe/shr1eL0nU7mEzguY3

⚙️ API collection setup

In case you use the wizard, note that you'll need to edit these requests and create new ones to match the ones we'll describe below. You can duplicate the ones created with the wizard, which will already contain the Airtable base URL and API key.

Get User Profile - GET

Replace <BASE_ID>, <TABLE_NAME> and <VIEW_NAME> with the corresponding values for your table.

https://api.airtable.com/v0/<BASE_ID>/<TABLE_NAME>?filterByFormula={userID}=%22${user.id}%22&view=<VIEW_NAME>

To test the request, you'll need to use a test value for the ${user.id} variable. You can fill in a dummy value in your Airtable base, and reuse this value in the API request:

After testing the request successfully, select all the items related to the user profile. In this case, we don't want to create a list, but rather get the values for one specific user, which is one row in the Airtable base. Therefore, it's very important that you select the 0 index in the dropdown for the .data.records path. These data items will correspond with the latest profile information for the specific user ID we provided in the request - in case there's more than one row for that user ID, we'll always use the data for the "latest modified" one.

Finally, go to the "Output Variables" tab and set the following names for the data items you've selected. It's very important that you set the name indicated below for the profile ID, since we'll be using the same name in later steps and any misspelling will make the feature not to work properly.

Post User Profile - POST

We'll use this request for the form where users can create a profile in the app onboarding. To do that, we'll use the following request URL and JSON body:

In the request URL, replace <BASE_ID> and <TABLE_NAME> with the corresponding values for your table.

https://api.airtable.com/v0/<BASE_ID>/<TABLE_NAME>

JSON body:

{
  "records": [
    {
      "fields": {
        "Name": "${name}",
        "Surname": "${surname}",
        "Age": ${age},
        "UserID": "${user.id}"
      }
    }
  ]
}

You can use some test values here as well to test the request. Since this is a POST request that we'll use to submit the user onboarding form, we don't need to select any data for binding - we'll only use the request to send data to Airtable.

Edit User Profile - PATCH

Finally, we'll need a PATCH request to allow a user edit the profile information they submitted in the onboarding (for instance, change the name or the age). This PATCH request will target the specific row we obtained in the Get User Profile request, and change it with the new information the user submitted. We'll use the URL and JSON body indicated below for the request.

In the request URL, replace <BASE_ID> and <TABLE_NAME> with the corresponding values for your table.

https://api.airtable.com/v0/<BASE_ID>/<TABLE_NAME>

JSON body:

{
  "records": [
    {
      "id": "${profile_id}",
      "fields": {
        "Name": "${name}",
        "Surname": "${surname}",
        "Age": ${age}
      }
    }
  ]
}

Now, you can use some test values to test this PATCH request. Make sure you indicate a valid profile_id, you can get one from the Get User Profile request as shown below:

Remember to set the headers of all the requests with the same Authorization!

⚒️ Data Binding setup

Once the API requests are created, it's time to bind them to the necessary app screens. We'll need to bind two screens:

  • The page where new users create a new profile in the onboarding

  • The page where existing users can edit the profile information they submitted in the onboarding.

"user-profile" page

This is the screen created with the post-login functionality, where new users who register will navigate after registering with their email and password. The screen is called "user-profile" in our design example.

Finally, we'll make the users navigate to the "success" screen in case they created the user profile successfully, and show an error alert in case the API request was unsuccessful.

"edit-profile" page

In this page, we'll allow existing users to change their profile information.

Secondly, we'll bind the "Input Destination" property of the fields to the Edit user profile request. This way, when they submit the form, the new profile information will be sent to Airtable, and the corresponding table record will be updated with the information provided in the form. In case a user doesn't change all the fields, the information obtained with the "Value" property binding will be sent along - therefore, those data fields won't change.

Finally, we'll also set up an alert, so the user knows that the profile was edited successfully, or that an error happened.

That's it! The user profile feature is now ready to be used. Feel free to test the feature in Bravo Vision and to add it to your existing apps.

Before continuing with the tutorial, you’ll need to set up a Firebase project in order to use Firebase authentication. Follow to do that. You can skip the design section, since the necessary tags are already included in the design file we provided above.

We'll use to store the user profile information. In case you haven't done that already, create a free account and a base to store the user information.

Once we have our design and backend ready, it's time to create all the API requests that are needed to connect our app and the backend. In case you haven't done so, import the example design file (or your own file), with all the necessary Bravo tags, to create a new app project.

After creating your app project, create a new . You can use the Airtable wizard with your Airtable base, which will already generate a few API requests for you.

We'll use this request to obtain the user profile data, by providing a , filtering the Airtable base by this user ID (using ), and returning the data associated to that user. This is necessary in order to load values for the input fields in the page to edit the user profile, and allow the user to change them.

It's important that we also include the , since this will keep the data records sorted in the same way as in the table (by latest modified). This is done to make the data management more robust: in case a user, for some reason, submits profile information under the same user ID more than once, we'll only use the latest data.

Note that we're using here a variable called ${profile_id} as the record ID value. As you remember, we indicated the same name for the data item that returns the record ID in the request. These two names must match for the feature to work properly, since this is how Bravo knows which ID value to pass to the PATCH request, so it targets the correct table record.

We'll bind the variables in the request to the form input fields in this screen, so a new record is created in Airtable with the new user profile. As you can see in the screenshot below, we'll bind the "Input Destination" property of the input fields to the corresponding variable.

We'll bind the "Value" property of the input fields to the request. This way, a user goes to this screen, they'll see the current profile data populate in the input fields. Then, they'll be able to edit as many fields as they wish.

📲 Test your app in !

🎓
🗃️
this guide
Airtable
Bravorized
API collection
Airtable view name
Bravo Vision
Get User Profile
Post User Profile
Get user profile
Firebase email-based authentication
post-login flow
filterByFormula
LogoOnboarding + User Profile (Firebase and Airtable)Figma
user ID