Adalo Resources
Sign Up for Adalo
Adalo Resources
Adalo Resources
  • 🚀Getting Started
  • 🎨Design
    • Designing Your App
      • Definitions and Terms
      • Creating an App
      • Using the Screen Size Switcher
      • Building with Sections
      • Alignment Tools
      • Using the Layout Tab
        • Screen Size Visibility
        • Sticky While Scrolling
        • Shared Layout Settings
        • Custom Layout Settings
      • Grouping Components
      • Responsive Navigation
        • Responsive Side Navigation
          • Side Navigation
          • Title
          • Menu Style
          • Menu Items
          • Bottom Button
          • Profile Section
        • Responsive Top Navigation
          • Navigation Bar
          • Title
          • Menu Items
          • Additional Navigation
          • Profile Image
      • Responsive Design Best Practices
    • Branding
      • Colors
      • Fonts
    • Create Component States
    • Preview Your App
    • Design Versions
    • Additional Design Resources
    • Migrating Legacy Apps
    • Legacy Builder
      • Create Component Containers
      • Positioning Components
      • Arranging and Grouping Components
      • Preview your App (Legacy Builder)
  • 🎬Actions
    • Action Basics
    • Links
    • Change Data
    • Notifications
      • Request Notification Permission in Your App
      • Trigger Push Notifications
      • Testing Notifications
      • Troubleshooting Notifications
        • Notifications Not Working on Android
        • Notifications Not Working on iOS
        • Notifications Not Working on PWA
    • Conditional Actions
    • Permissions
    • App Authentication
  • 🛠️Screens and Components
    • Screens
      • Deep Linking
      • Deep Linking With Data
      • Deep Linking Share Action
      • Deep Linking Redirection & Fallbacks
    • Screen Navigation
    • Component Basics
    • Magic Text
      • Logged-In User vs. Current User
      • How to Format Dates and Numbers
      • Sums, Counts, Averages, Min and Max
      • How to Create a Custom Math Formula
        • Complex Calculations
    • Conditions and Filtering
      • Filtering in Adalo
      • Using Conditions in Adalo
    • Changing a Component's Visibility
    • Lists
      • Sorting and Filtering Lists
      • Creating Custom Lists
      • Lists of Lists
    • Buttons
    • Toggles
    • Forms
    • Simple Components
      • Image Component
      • Text Input
      • Webview Component
        • Troubleshooting Webview
          • Webview URL not loading in Adalo App
          • Webview crashing in Native App
    • Table Component
    • Video Component
    • Marketplace Components
      • How to Add Components from the Marketplace
      • Digital Purchases for In-App Purchases
      • Sign in with Google
      • Sign in with Apple
      • Maps
      • Bar Charts and Line Graphs
      • Pie Chart
      • Google Admob
        • Troubleshooting Admob
          • Ads Not Displaying in Native
      • Calendar
      • Progress Bar
      • Star Rating
      • Stopwatch
      • Slider
      • Lottie Files
      • YouTube
      • Audio Player
        • Troubleshooting Audio Player
          • Apple App Rejection: UIBackgroundModes key
      • Deck Swiper
      • Markdown Renderer
      • Signature
      • Stripe
        • Stripe Payment
        • Stripe Subscription
        • Stripe Connect Marketplace
          • Set up your Stripe Account for Stripe Connect
          • Allow Merchants to Connect their Stripe Account to your App
          • Stripe Connect
          • Stripe Marketplace Payment
        • Configuring Stripe Test Mode
        • Stripe Custom Actions
          • Get Stripe Subscription Data
          • Get Stripe Customer Data using Email Address
        • Legacy Stripe Components (Deprecated)
          • Marketplace Payments
            • Set up your Stripe Account for Stripe Connect
            • Allow Merchants to Connect their Stripe Account to your App
            • Configure Consumer Payment to go to Merchants' Accounts
          • One-time Card Payments
          • Subscription Payments
  • 🧱Feature Templates
    • Browse, Purchase, and Manage Classes
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Category List Screen
      • Classes List Screen
      • Class Details Screen
      • Purchase Screen
      • Congrats Screen
      • Admin Manage Clinics Screen
      • Admin Transactions Screen
      • Admin Create Clinic & Admin Edit Clinic Screens
    • Browse, Purchase, and Manage Events
      • Overview — Screens, Database, Layout Settings, Use Cases
    • Browse Classes
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Category List Screen
      • Classes List Screen
      • Classes Details Screen
    • Classes Admin Dashboard
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Admin Manage Clinics Screen
      • Admin Transactions Screen
      • Admin Create Clinic & Admin Edit Clinic Screen
    • User Chat
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Conversations List Screen
      • Chat Screen
      • New Chat Modal Screen
    • Forum
      • Overview — Screens, Database, Layout Settings, Use Cases
    • Group Messaging
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Messaging Screen
      • Edit Message Modal Screen & Edit Channel Modal Screen
      • Search Messages Screen & Channels Screen
    • Account Settings
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Account Settings Screen
      • Success Modal Screen & Delete Account Confirmation Screen
    • Appointment Booking
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Coaches Screen
      • Time Slots Screen
      • Book Appointment Screen
      • Coach Admin Screen
      • Edit Session Screen
    • Assign Tasks
      • Overview — Screens, Database, Layout Settings, Use Cases
      • My Tasks Screen, Team Tasks Screen, Completed Screen
      • Task Detail Screen
      • Edit Task Screen
    • Agree and Sign
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Terms Screen
      • Agree & Sign Modal Screen
      • Signatures Admin Screen
    • Announcements & Notifications
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Notifications Screen
      • Notify All & Notify One Screens
    • User Profile & Account Settings
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Setup Step 1 Screen
      • Setup Step 2 Screen
      • My Profile Screen
      • Additional Screens
    • Browse Users
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Browse Members & Profile Screen
    • Browse Dates
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Time Slots & Workout Screens
    • Browse Home Listings
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Listings Screen
      • Listing Detail Screen
      • Modal Image Gallery Screen
    • Image Carousel
      • Overview — Screens, Database, Layout Settings, Use Cases
      • Screens
    • Image Gallery Modal
      • Overview — Screens, Database, Layout Settings, Use Cases
    • User Admin Dashboard
      • Overview — Screens, Database, Layout Settings, Use Cases
    • Workout Assignment
      • Overview — Screens, Database, Layout Settings, Use Cases
    • Social Media Feed
      • Overview — Screens, Database, Layout Settings, Use Cases
    • Store with Shopping Cart
      • Overview — Screens, Database, Layout Settings, Use Cases
    • Inventory Management
      • Overview — Screens, Database, Layout Settings, Use Cases
    • Video Gallery & Upload
      • Overview — Screens, Database, Layout Settings, Use Cases
    • Restaurant Ordering
      • Overview — Screens, Database, Layout Settings, Use Cases
  • 🗃️Database
    • Database Property Types
    • Relationships
      • One-to-Many vs. Many-to-One
      • Many-to-Many
    • The User Collection
    • Collection Permissions
    • Importing Records from a CSV File
    • Download your Collection as a CSV File
    • Location
      • Getting Your Google API Key
      • Estimating Google API Usage
      • The Location Property Type
      • Location in Forms and Inputs
      • Location Magic Text and Formatting
      • Getting the User's Location
      • Latitude, Longitude, and Special Formulas
      • Comparing Locations
      • Troubleshooting Location Features
  • 🪄Settings
    • Copying vs Cloning your App
      • How to Copy and/or Delete an App
      • Cloning Apps and Making Apps Cloneable
  • 🚀Performance
    • Builder Performance Tips
    • Optimize App Performance
      • Image Optimization
      • Five Tips for Improving Your Adalo App Performance
  • ✍️Publishing Apps
    • Publishing to the Web
      • Publish to Adalo Subdomain
      • Publish to Custom Domain
      • Troubleshooting Domain Setup
        • Custom Domain is Not Secure
        • Domain Could Not be Verified
        • Error: Not Found
    • Publishing to the Google Play Store
      • Create Your Google Developer Account
      • Create your Firebase Project
      • Register Android App & Download Config File
      • Generate & Download Private Key
      • Get your Build file
      • Create New Google Play Listing
      • Upload your Build file to Google Play Listing
      • Finalize Listing and Release App
      • Troubleshooting Android Release
        • Google Play rejected the app due to data safety issues
        • Error: Android App Signed with Wrong Key.
        • Error: Version Code 'xxx' has already been used. Try another Version code.
        • Error: Package Name already exists in Google Play.
        • Error: Upload a valid app bundle.
        • Error: Existing Users Can't Upgrade to New App Bundles.
    • Publishing to the Apple App Store
      • Create Your Apple Developer Account
      • Setup Annual Payment for your Apple Developer Account
      • Create Your Apple Bundle ID
      • Create Your Adalo ‘App-Specific Password’
      • Start your Build in Adalo
      • Add Users to Your App Store Connect Team
      • Add Users to Testflight
      • Creating Screenshots for the App Store
      • Privacy and App Tracking Transparency
      • Troubleshooting iOS
        • Build Error: You have reached the maximum number of certificates
        • Build Error: You have already reached the maximum allowed number of keys for this service
        • Build Error: Distribution certificate has expired
        • Build Error: Asset Validation Failed - Invalid App Store Icon
        • App Rejected: Add Permission Text to Your iOS Build
        • Delivery warning during the app submission process: ITMS-90899
        • iOS Build Not Showing in Testflight
        • Apple Two-Factor Authentication Error
    • Publishing to the Web (Legacy Apps)
    • Uploading .APK (Legacy)
    • Publishing FAQs
    • Troubleshooting
      • Build Stuck in Queue
  • ▶️Videos
    • Getting Started
    • Full Walkthrough
    • Working with Data
    • Designing your Database
    • Custom Lists
    • Changing Component Visibility
    • Forms
    • Ordering & Payments
    • Math & Custom Formulas
    • Chat
  • 👩‍🏫Tutorials
    • How to Use Keyboard Shortcuts
    • How to Embed Video or Audio (YouTube, Vimeo, SoundCloud)
    • How to Share a Database Between Apps
    • How to Create an Empty State
    • How to Create a Search Bar
    • How to make a list your users can filter
    • How to Create a Modal/Popup Window
    • How to create a "Favorite" button (Legacy Builder)
    • How to add an Image to an App Bar
    • How to send Scheduled Push Notifications
    • Start Maps Navigation in Your Adalo Apps Using Google Maps, Apple Maps, or Waze
    • Generating Map Previews in Your Adalo App Using the Google Static Maps API
    • Special Links: Email, Text (SMS), and Phone
    • How to have a Dropdown Menu in a Form
    • How to Setup a Shopping Cart with Payments
    • How to set up a Public Profile screen for Users
    • How to Allow Users to Follow Others
    • How to have a Form Automatically Set a Relationship
    • How to add Chat to your App
    • How to Create Multi-Sided Apps
    • How to Add an "Add to Calendar" Button for Events
    • Forwarding Domain to Root Address
    • How to Create Temporary User Avatars
    • How to Set Up a Social Media List
    • How to Play Your Spotify Podcast in Adalo’s Audio Player
  • 🧩Integrations
    • The Adalo API
      • Collections API
      • Send Push Notifications via API
    • Xano
      • Setup Your Xano Workspace
      • Connect Xano with Private Swagger
      • Connect Xano to an Adalo App
      • User Signup, Login, Authentication
      • Google Sign In with Xano Database
      • Other Collections
      • Working with Data Types in Adalo and Xano
      • Counting Records with Xano
      • Lists and Pagination
      • Xano Response
      • Xano Tips and Tricks
      • Troubleshooting
    • Accessing your Record ID
    • Custom Actions
      • ✨Power Your App with ChatGPT
    • External Collections with APIs
      • Magic Text in External Collections
    • Airtable
      • Connecting to Airtable
      • Adding/Deleting Properties
      • Displaying Images
      • Working with Lists
        • Images In Lists
        • Filtering Airtable Lists
        • Magic Texts in Lists
        • Limiting the Number of List Items
        • Sorting Airtable Lists
      • Working with Forms
        • Airtable Dropdown fields & Validation
      • Working with Attachments, Images and Airtable relationship Fields
      • Relationships & Airtable Collections
      • Debugging
    • DreamFactory
    • Zapier
    • Make (Formerly Integromat)
      • Create a PDF from a record in Adalo
      • Notification in Slack when a new user registers in your Adalo app
      • Send verification email to new sign ups
      • Send a verification SMS to new sign ups
      • Send a file to Google Drive from Adalo
      • Send new files from a Google Drive folder to an Adalo collection
      • Use Google Vision for OCR an image and store the text results in an Adalo record
    • IAPHUB
    • Mixpanel
    • Troubleshooting the Adalo API
      • List inside of a List not loading
      • Error Codes
  • ⚙️Adalo Account
    • Account
      • Updating Email and Password
      • Enabling Developer Mode
    • Team Members
      • Add Team Members to Your Adalo App
    • Apps
    • Usage and Billing
      • Billing, Invoices, and Payments
      • App Actions Dashboard
    • Domains
      • Resetting SSL
  • ❓FAQs
    • General Questions
    • What can Adalo do?
    • Adalo Pricing: FAQs
    • Adalo Account: FAQs
    • Adalo Subscription Add-Ons
    • Working with an Adalo Freelancer
    • Adalo Experts
    • Adalo Affiliate Program
    • Adalo Pricing: Legacy Accounts
  • 🤔Troubleshooting
  • 📚Additional Resources
    • Adalo App Academy
      • Introduction to Apps
      • Strategy and Business
      • Design
      • Build
      • Launch & Iterate
      • Freelancers & Agencies
      • All Courses
    • App Development Cost Calculator
    • Hire an Adalo Expert
    • Adalo Forum
  • 📖Glossary
Powered by GitBook
On this page
  • Setting up the Data
  • Set up Following? using a toggle
  • Set up following users with buttons

Was this helpful?

  1. Tutorials

How to Allow Users to Follow Others

PreviousHow to set up a Public Profile screen for UsersNextHow to have a Form Automatically Set a Relationship

Last updated 1 year ago

Was this helpful?

If your app has a social element where users can follow one another, check out this tutorial. This tutorial starts with a View User's Profile screen already created. To learn more about how to create profile screen, you can review the tutorial.

Setting up the Data

1) Add a Following relationship to your Users table

  1. Open the Database section on the left toolbar.

  2. Select the drop down arrow to expand the Users data table.

  3. Select + ADD PROPERTY.

  4. Hover over Relationship.

  5. Select Users.

  6. Select the option that states "A User can have multiple Users. A User can have multiple Users".

  7. Select Done.

  8. Back on the left toolbar, in the red box for the Users relationship select the Name field where it says Users.

  9. Delete the text Users and rename it to Following.

  10. Select Save

2) Add a Followers relationship to your Users table

  1. Open the Database section on the left toolbar.

  2. Select the drop drop down arrow to expand the Users data table.

  3. Select + ADD PROPERTY.

  4. Hover over Relationship.

  5. Select Users.

  6. Select the option that states "A User can have multiple Users. A User can have multiple Users".

  7. Select Done.

  8. Back on the left toolbar, in the red box for the Users relationship select the Name field where it says Users.

  9. Delete the text Users and rename it to Followers.

  10. Select Save

Set up Following? using a toggle

1) Set up the text label

  1. Select the add component button

  2. Select Text.

  3. Place the text on the screen.

  4. On the left toolbar, place your cursor in the grey box under, where it says Enter Text.

  5. Delete the text.

  6. Type in "Follow?"

2) Set theToggle and add the current user to users that the logged in user is following

  1. Select the add component button

  2. Scroll down to the Buttons section and select it to expand the menu.

  3. Select the Toggle component.

  4. Place the toggle on the screen.

  5. Under What does this trigger?, select Logged in User > Following > Includes Current User?.

3) Set up an action to add the logged in user as a follower of the current user

  1. Select the Toggle.

  2. On the left toolbar, scroll down to the Click Actions section and select + ADD ACTION.

  3. Select Update > Current User.

  4. In the Update section that just appeared in the left toolbar, scroll down to Followers and select the drop down arrow.

  5. Select ADD > Logged In User.

  6. Select Show Advanced.

  7. Under When does this happen? Select the drop down arrow where it says Always and change it to Sometimes.

  8. Underneath where it says This Action will only happen if... select the drop down arrow next to where it says Select.

  9. Set it to Current User > Followers > All

  10. Next to where it says Contains, select the drop down arrow.

  11. Select Does not contain.

  12. For the last value of the condition, where it says Empty, select the drop down arrow and set it to Logged in User.

  13. Select Done.

4) Set up an action to remove the logged in user as a follower of the current user

  1. Select the Toggle.

  2. On the left toolbar, scroll down to the Click Actions section and select + ADD ACTION.

  3. Select Update > Current User.

  4. In the Update section that just appeared in the left toolbar, scroll down to Followers and select the drop down arrow.

  5. Select Remove> Logged In User.

  6. Select Show Advanced.

  7. Under When does this happen?, select the drop down arrow where it says Always and change it to Sometimes.

  8. Underneath where it says This Action will only happen if... select the drop down arrow next to where it says Select.

  9. Set it to Current User > Followers > All

  10. The next field will auto populate as Contains. Leave that as is.

  11. For the last value of the condition, where it says Empty, select the drop down arrow and set it to Logged in User.

  12. Select Done.

Set up following users with buttons

1) Add the Follow button

  1. On the left toolbar, select the Add Component button.

  2. Select Button.

  3. Place it on the screen.

  4. On the left toolbar underneath where it says Text, select the text Button and removed it.

  5. Add the text Follow.

2) Set up an action to add the current user to the Logged in User's Following list.

  1. Select the follow button.

  2. On the left toolbar, underneath Click Actions, select + ADD ACTION.

  3. Set the action to Update > Logged In User

  4. In the Update section that just appeared in the left toolbar, scroll down to Following and select the drop down arrow.

  5. Set it to Add > Current User.

  6. Select Done.

3) Set up an action to add the logged in user to the current user's list of followers

  1. Select the follow button.

  2. On the left toolbar, underneath Click Actions, select + ADD ANOTHER ACTION.

  3. Set the action to Update > Current User

  4. In the Update section that just appeared in the left toolbar, scroll down to Followers and select the drop down arrow.

  5. Set it to Add > Logged In User.

  6. Select Done.

4) Set up the Follow button to be conditionally visible

  1. Select the Follow button.

  2. On the left toolbar next the where it says the name of your button, select the overflow menu.

  3. Select Change Visibility.

  4. On the left toolbar in the Visibility section, select the drop down arrow next to where it says Always Visible.

  5. Set it to Sometimes Visible.

  6. Underneath where is says Will be visible if... select the drop down menu.

  7. Set it to Logged in User > Following > All.

  8. Next to where it says Contains, select the drop down arrow.

  9. Select Does not contain.

  10. For the last value of the condition, where it says Empty, select the drop down arrow and set it to Current User.

  11. Select Done.

5) Add the Unfollow button

  1. On the left toolbar, select the Add Component button.

  2. Select Button.

  3. Place it on the screen.

  4. On the left toolbar underneath where it says Text, select the text Button and removed it.

  5. Add the text Unfollow.

  6. Underneath where it says Icon, select the x to remove the icon that is in place.

  7. Select the drop down menu.

  8. Select an icon that you would like to use. In this situation, I chose to use the cancel icon.

6) Set up an action to remove the current user from the list of users that the logged in user is following

  1. Select the Unfollow button.

  2. On the left toolbar, underneath Click Actions, select + ADD ACTION.

  3. Set the action to Update > Logged In User

  4. In the Update section that just appeared in the left toolbar, scroll down to Following and select the drop down arrow.

  5. Set it to Remove > Current User.

  6. Select Done.

7) Set up an action to remove the logged in user form the current users list of followers

  1. Select the follow button.

  2. On the left toolbar, underneath Click Actions, select + ADD ANOTHER ACTION.

  3. Set the action to Update > Current User

  4. In the Update section that just appeared in the left toolbar, scroll down to Followers and select the drop down arrow.

  5. Set it to Remove > Logged In User.

  6. Select Done.

8) Set up the Unfollow button to be conditionally visible

  1. Select the Unfollow button.

  2. On the left toolbar next the where it says the name of your button, select the overflow menu.

  3. Select Change Visibility.

  4. On the left toolbar in the Visibility section, select the drop down arrow next to where it says Always Visible.

  5. Set it to Sometimes Visible.

  6. Underneath where is says Will be visible if... select the drop down menu.

  7. Set it to Logged in User > Following > All.

  8. The next field will auto populate as Contains. Leave that as is.

  9. For the last value of the condition, where it says Empty, select the drop down arrow and set it to Current User.

  10. Select Done.

👩‍🏫
How to set up a Public Profile screen for Users