Bubble Docs
  • Introduction
  • New? Start Here
  • What is Bubble?
  • The Glossary
  • User manual
    • Getting started
      • What is Bubble?
      • Building for...
        • Web
        • Native iOS and Android
          • Mobile app quick start guide
          • What is a native mobile app?
          • Native mobile vs. web development
          • Differences in native and web elements
          • Native mobile app terminology
      • Building your first app
        • Planning features
        • Database structure
        • Design and UX
        • eCommerce and payments
          • Shopping cart
          • Checkout page
          • One-time payments
          • Subscriptions
          • Marketplace
      • Creating and managing apps
      • The Bubble editor
        • Tabs and sections
          • Design tab
            • The element tree
            • The property editor
          • Workflow tab
          • Data tab
          • Styles tab
          • Plugins tab
          • Settings tab
            • Application settings
              • Custom headers/body
              • Visual settings
              • Social media sharing
              • Translating your app
              • Email settings
              • Collaboration
            • Custom domain and DNS
          • Logs tab
        • Tools
          • Key features
          • The search tool
          • The Issue Checker
          • The element tree
          • The element property editor
          • The debugger
          • Notes
        • Previewing your app
      • Transitioning to Bubble from...
        • JavaScript
        • HTML and CSS
        • SQL
    • Design
      • Elements
        • Web app
          • The page
          • Containers
            • Groups
            • Repeating groups
            • Table elements
            • Popups
            • Floating groups
            • Group focus
          • Visual elements
          • Input forms
            • Text and numbers
            • Dates and time
            • File uploads
            • Selection controls
        • iOS and Android app
          • The view
          • Containers
          • Visual elements
          • Input forms
          • Mobile reusable elements
        • The element hierarchy
          • The element tree
        • Reusable Elements
      • Styling
        • Color variables
        • Font variables
        • Styles
        • Custom Fonts
      • Responsive design
        • Building responsive pages
        • Legacy articles
          • The Basics (Legacy)
          • Building Responsive Pages (Legacy)
          • Migrating Legacy Pages
          • Tips When Designing (Legacy)
      • Templates
      • The Component Library
      • Importing from Figma
    • Data
      • The database
        • Data types and fields
        • Creating, saving and deleting data
        • Finding data
        • Displaying data
        • Protecting data with privacy rules
        • The database editor
        • Export/import data
          • Exporting data
          • Importing data (CSV)
        • Working with location data
        • Using Algolia
        • Database structure by app type
          • Marketplace Apps
          • Directory & Listings Apps
          • Social Network Apps
          • SaaS Apps
          • Project Management Apps
          • CRM Apps
          • Professional Services Apps
          • On-demand Apps
          • Documentation/ CMS Apps
          • Applicant Tracking System (ATS) Apps
          • Portfolio Apps
          • Gallery Apps
          • Online Store / Ecommerce Apps
          • Blog Apps
          • Messaging App
          • Dashboards
          • Building Block Apps
          • Bubble as a backend
      • Files
      • Images
      • Static data
        • App texts (translations)
        • Option sets
      • Temporary data
        • Custom states
        • URL parameters
      • User accounts
        • Authentication plugins
          • Facebook plugin
          • Fitbit plugin
          • Google plugin
          • Instagram plugin
          • LinkedIn plugin
          • Pinterest plugin
          • Slack plugin
          • Wistia plugin
          • YouTube plugin
        • Cookies set by Bubble
      • Time, dates and time zones
    • Logic
      • The frontend and backend
      • Workflows
        • Events
          • Frontend events
            • Recurring workflows
            • Custom events
          • Backend events
            • Database trigger events
        • Actions
        • API Workflows
      • Dynamic expressions
      • Conditions
      • Navigation
        • Single-page applications (SPA)
        • Multi-page applications
        • Page slugs
      • Device resources
        • Location services
        • Camera/photo library
    • Workload
      • Understanding workload
        • Activity types
        • The workload calculation
        • Client-side and server-side processing
      • Tracking workload
        • Measuring
          • Using App Metrics
        • Monitoring
          • Workload notifications
          • Infinite recursion protection
      • Optimizing workload
        • Optimization framework
        • Optimization checklist
          • Page load
          • Searches
          • Workflows and actions
          • Backend workflows
        • Agency showcases
          • Minimum Studio
          • Neam
          • Support Dept
    • Security
      • Bubble's security features
      • Planning app security
      • Client-side and server-side
      • Bubble account security
      • App security
      • Page security
      • Database security
      • API security
        • API Connector security
        • Data API security
        • Workflow API security
      • Flusk
        • Overview
        • Flusk plan features
        • Getting started with Flusk
        • Flusk security tools
          • The Issues Explorer
          • Issue details
          • Tools and settings
            • Pages rating
            • Database rating
        • Flusk FAQ
      • Cookies
      • Security checklist
    • Previewing your app
      • Previewing a web app
      • Previewing a mobile app
    • Publishing your app
      • Web app
      • Native mobile app
        • Global native mobile settings
        • iOS App Store
        • Google Play Store
        • Publishing FAQ
    • AI
      • Generate apps with AI
        • About AI app generation
      • AI page designer
      • Connect to AI agents
    • Maintenance
      • Collaborators
      • Version control
        • Best practices: Version control
        • Transitioning from the legacy version control
        • Terminology: Version control
        • Version Control (legacy)
      • Commenting
      • Database maintenance
        • Copying the database
        • Restoring database backups
        • Bulk operations
          • Bulk operation methods compared
        • Wiping change history
      • Performance
        • Hard limits
        • Capacity Usage (legacy)
        • Notes on queries
      • SEO
        • Introduction to SEO
        • SEO: App
        • SEO: Page
      • Testing and debugging
        • Introduction to testing and debugging
        • The debugger
        • The server logs
        • Supported browsers
      • API workflow scheduler
    • Integrations
      • API
        • Introduction to APIs
          • What is a RESTful API?
        • The Bubble API
          • Bubble API terminology
          • Authentication
            • How to authenticate
            • No authentication
            • As a User
            • As an admin
          • The Data API
            • Data API Privacy Rules
            • Data API endpoints
            • Data API requests
          • The Workflow API
            • Workflow API privacy rules
            • Workflow API endpoints
            • API workflows
              • Creating API workflows
              • Scheduling API workflows
              • Recursive API workflows
              • API Workflow Scheduler
              • Case: Stripe notifications
        • The API Connector
          • Authentication
          • API Connector security
          • API guides
            • OpenAI
              • Authentication
              • Calls
                • ChatGPT
                  • Chat
            • Google Translate
              • How to setup Google API keys
          • Streaming API
        • API security
        • Plugins that connect to APIs
        • API Glossary
      • Plugins
        • What Plugins Can Do
        • Installing and using Plugins
        • Authentication plugins
        • Special Plugins
      • SQL Database Connector
      • Bubble App Connector
      • WorkOS
        • WorkOS SSO
        • WorkOS API
    • Infrastructure
      • Sub-apps
      • Bubble release tiers
      • Hosting and scaling
        • How Bubble hosting works
        • Scaling with Bubble
        • CDN (Cloudflare)
        • Bubble app names
        • Domain and DNS
      • Compliance
        • GDPR
        • SOC 2 Type II
        • HIPAA
        • Other frameworks and standards
    • Bubble for Enterprise
      • Hosting and infrastructure
        • Dedicated instance
          • The Dedicated editor experience
          • Technical specs
          • Main cluster dependencies
          • Customizable options
          • Migration process
            • Pre-migration
            • During migration
            • Post-migration
      • Security and compliance
        • Single sign-on (SSO)
        • GDPR
        • SOC 2 Type II
        • HIPAA
        • Other frameworks
        • Bubble's security features
      • Admin and collaboration
      • Priority support
      • Billing and Payment Guideline for Dedicated Instances
  • Core Reference
    • Using the core reference
    • Bubble's Interface
      • Design tab
      • Design tab (Legacy)
      • Workflow tab
      • Data tab
      • Styles tab
      • Styles tab (Legacy)
      • Plugins tab
      • Settings tab
      • Logs tab
      • Template tab
      • Toolbar
      • Top and context menu options
      • Deployment and version control
        • Deployment & Version Control Dropdown (legacy)
      • Notes
    • Elements
      • Native mobile elements
        • View element
        • List component
      • General properties
      • General properties (Legacy)
      • Styling properties
      • Styling Properties (Legacy)
      • Responsive Properties
      • Responsive Properties (Legacy)
      • Conditional formatting
      • States
      • Page Element
        • Page Element (Legacy)
      • Visual Elements
      • Containers
      • Container Layout Types
      • Containers (Legacy)
      • Input Forms
      • Reusable Elements
      • Element Templates (legacy)
    • Workflows
    • Events
      • General events
      • Element events
      • Custom events
      • Recurring event
      • Database trigger event
    • Actions
      • Account
      • Navigation
      • Data (things)
      • Email
      • Element
      • Custom
    • On-device resources
    • Data
      • Data Sources
      • Operators and comparisons
      • Search
      • Privacy
    • Styles
    • API
      • The Bubble API
        • The Data API
          • Authentication
          • Data API endpoints
          • Data API requests
        • The Workflow API
      • The API Connector
        • Authentication
        • Adding calls
    • Bubble-made Plugins
      • AddtoAny Share Buttons
      • Airtable
      • API Connector
      • Blockspring
      • Box
      • Braintree
      • Bubble App Connector
      • Chart.js
      • Circle Music Player
      • Draggable Elements
      • Dropzone
      • Facebook
      • Fitbit
      • Full Calendar
      • Google
      • Google Analytics
      • Google Optimize
      • Google Places
      • Ionic Elements
      • iTunes
      • Slidebar Menu
      • LinkedIn
      • Localize Translation
      • Mixpanel
      • Mouse & Keyboard Interactions
      • Multiselect Dropdown
      • Progress Bar
      • Rich Text Editor
      • Rich Text Editor (Legacy)
      • Screenshotlayer
      • SelectPDF
      • Slack
      • Segment
      • Slick Slideshow
      • SQL Database Connector
      • Star Rating
      • Stripe
      • Tinder-like Element
      • Twitter
      • YouTube
      • Zapier
    • Application Settings
      • App plan
      • General
      • Domain / email
      • Languages
      • SEO / metatags
      • API
      • Collaboration
      • Sub-apps
      • Versions
  • Account & Marketplace
    • Account and billing
      • Pricing and plans
        • Plans and billing
        • Billing cycle
        • FAQ: Pricing and Workload
      • Account Management
      • Building Apps for Others
      • Selling on the Marketplace
      • Plans & Billing (legacy)
    • Official Bubble Certification
      • Hiring certified developers
    • Building Plugins
      • The Plugin Editor
      • General Settings
      • Updating to Plugin API v4
      • Adding API Connections
      • Building Elements
      • Building Actions
      • Loading Data
      • Publishing and versioning
      • Github Integration
    • Building Templates
    • Application and data ownership
    • Marketplace policies
    • Bug reports
  • Vulnerability Disclosure Policy
  • Beta features
    • About the Beta features section
    • Native mobile apps
Powered by GitBook
On this page
  • Built-in states
  • ...'s width
  • ...'s height
  • ... is hovered
  • ... isn't hovered
  • ... is pressed
  • ... isn't pressed
  • ... is focused
  • ... isn't focused
  • ... is visible
  • ... isn't visible
  • ... is valid
  • ... isn't valid
  • ... isn't clickable
  • ...'s value (input)
  • ... is / isn't checked (checkbox)
  • ...'s password strength
  • ...'s typed text (search box input)
  • ...'s place name (search box input)
  • ...'s content (container)
  • ...'s list (repeating group)
  • is loading (repeating group, picture uploader)
  • ...'s page number (repeating group)
  • is first page (repeating group)
  • is first page (repeating group)
  • ...'s file size (file and image uploader)
  • ...'s upload percentage (file uploader)
  • ...'s current marker (map)
  • ...'s center address (map)
  • ...'s zoom level (map)
  • ...'s current event (calendar)
  • ...'s current day's events (calendar)
  • ...'s current day (calendar)
  • ...'s current date range (calendar)
  • ...'s current slide (slideshow, tinder)
  • ...'s current option (slidable menu)
  • ... is dragged
  • ... is dragged over
  • Custom states
  • Other ways to learn

Was this helpful?

  1. Core Reference
  2. Elements

States

Last updated 1 year ago

Was this helpful?

This core reference entry is suited for beginner-level builders.

To learn about this topic more in-depth, we recommend reading the suggested articles below:

The design tab In this article we cover the different tools available in the design tab.

  • Article: ´The design tab

  • Article:

    The tool you use to edit element properties.

  • Article: Conditional expressions

    How you recognize an element's different states.


Elements In this article series, we cover how to work with different element types:

  • Article series: Elements

    • Article series: The element hierarchy

    • Article: The page

    • Article series: Container elements (elements that contain other elements)

    • Article: Visual elements (elements like text, buttons, icons and images)

    • Article series: Input forms (elements that accept input, such as text and file uploads)

  • Article: Conditional expressions (making your elements change appearance in response to varying conditions)


Previewing your app

In this section about how to in the development environment.

Article: Previewing your app

Bubble Academy: Element videos (list of videos related to elements)

States of an element are situations the element can find itself in, such as being hovered or visible.

Built-in states

...'s width

This state returns the width of the element in pixels.

...'s height

This state returns the height of the element in pixels.

... is hovered

This is the state when the user directly hovers over the element with the mouse.

... isn't hovered

This is the state when the user doesn't hover over the element with the mouse.

... is pressed

This is the state when the user clicks the element with the mouse or touches it on a touch device.

... isn't pressed

This is the state when the user doesn't click the element with the mouse or doesn't touch it on a touch device.

... is focused

This is the state when the input element is focused, and the user can type in it.

... isn't focused

This is the state when the input element isn't focused, and the user cannot type in it.

... is visible

This is the state when the element is visible.

... isn't visible

This is the state when the element is invisible, either directly hidden or contained in a hidden container.

... is valid

This is the state when an input has valid content, and therefore whose content can be used in workflows in run mode. You will usually use the following property 'isn't valid' for styling purposes.

... isn't valid

This is the state when an input has invalid content. This can happen when: – The input is empty, and 'This input shouldn't be empty' is selected in the Property Editor. – The input isn't empty, but the data entered doesn't fit the type of content. For example, the email address isn't a valid email, the address isn't recognized by Google, or the password doesn't follow the password policy. In this case, affected workflows will not run until the input is valid.

... isn't clickable

This is the state when a button cannot be clicked. This can happen when: – The button is manually set to non-clickable in the Property Editor. – The button to trigger a workflow relies on invalid input. In this case, not only will the conditional formatting not apply, but affected workflows will not run until the button is clickable.

...'s value (input)

This is the content of the input. Normally this is simple type, like a text or number, but it can be more complex if using a dropdown or address.

... is / isn't checked (checkbox)

This state is true when the checkbox is / isn't checked.

...'s password strength

This returns a value from 0 to 100 representing the strength of the typed password. 100 is the strongest. This option is only available when the input's type of content is 'password'.

...'s typed text (search box input)

This returns what the user typed in the search box, if it doesn't match any entry in the dynamic list. The type is text.

...'s place name (search box input)

This returns the place name of the selected address in the search box as a text string. This operator is only available when the the choices style is set to geographic places.

...'s content (container)

This state returns the content of a container. The type of this state is the type of content of the container. Control the value of this state through the data source property of the element or workflow actions.

...'s list (repeating group)

This state returns the content of a repeating group. The type of this state is a list of the type of content of the repeating group. Control the value of this state through the data source property of the element or the workflow action 'Display list in a repeating group.'

is loading (repeating group, picture uploader)

This state is true when the repeating group is loading a new list. It allows you to style other elements if you want to adjust how the page looks when loading the list. Use this to know when a file or picture uploader is in the process of uploading a file.

...'s page number (repeating group)

This state gives the current page number of a repeating group displaying a fixed number of cells.

is first page (repeating group)

This state is true when a fixed number of cells repeating group is on the first page.

is first page (repeating group)

This state is true when a fixed number of cells repeating group is on the last page.

...'s file size (file and image uploader)

This state returns the size of the file that is being uploaded.

...'s upload percentage (file uploader)

This state returns the percentage (from 0 to 100) of the file uploaded so far.

...'s current marker (map)

This state returns the value of the marker the user clicked in a map. The type of this state is the type of content of map.

...'s center address (map)

This state returns the address of the center of the map. It updates as soon as the user finishes dragging the map.

...'s zoom level (map)

This state returns the degree to which you are currently zoomed in as a number.

...'s current event (calendar)

This state returns the value of the event the user clicked in a calendar. The type of this state is the type of content of calendar.

...'s current day's events (calendar)

This state returns the list of events of the day the user clicked in a calendar. The type of this state is a list of the type of content of calendar.

...'s current day (calendar)

This state returns the date of the day the user clicked. The type is date.

...'s current date range (calendar)

This state returns the range of the current calendar view (the start and end date of the view). The type is date range.

...'s current slide (slideshow, tinder)

This state returns the current image shown by these two elements.

...'s current option (slidable menu)

This state returns the option the user just clicked in the menu. The type is text.

... is dragged

This state is true when a drag/drop group is being dragged.

... is dragged over

This state is true when a drop area is being hovered by a dragged group.

Custom states

Define custom states for an element, similar to the built-in states hovered, pressed, or focused. These states can then be used in the Conditional section in the Property Editor to change how an element displays or behaves when this state has a particular value. Modifying a state is done through the Workflow action 'Set state.' Custom states are useful when you'd like to save information at an element level instead of in the database. A typical use case is to create a tab system in a group. Define a state 'current tab' for the container, and then change the value of 'current tab' when the user clicks on the different tab buttons. Using Conditional formatting, show or hide elements based on the value of the group's current tab.

Note: When a state is set to the value of a search in a workflow, the state's value will actually be the query, not the query response value. Use the ':make static' operator on the search dynamic expression to save the result of the query instead of the search itself.

Other ways to learn

User manual articles
  • Custom states

Our Academy quick tip on how to use the value operator
The element inspector