How To Reveal A Password Inside An Input Field (Complete Bubble.io Guide)

Beginner How to’s

3rd of September, 2025

Creating a show/hide password toggle feature significantly improves user experience on login and signup pages. Instead of forcing users to delete and retype passwords when they suspect an error, this feature allows them to quickly verify their input with a simple click. This guide will walk you through implementing this functionality in Bubble, including the necessary design elements, plugin setup, and workflows.

1 – Set Up Your Design Elements

Create the Container Group

First, you’ll need to build a container that will hold both your password input and the toggle icon.

  1. Navigate to the Design tab in your Bubble editor
  2. From the left panel, drag a Group element onto your page
  3. Position it below your email input field (if you have one)
  4. Add 15px top margin for proper spacing
  5. Apply a border with 30% gray color for visual definition
  6. Rename the group to “Group Password Input Container” for better organization

Add the Password Input Field

Next, you’ll need to add the actual password input element inside your container group.

  1. Drag an Input element from the left panel into your container group
  2. Name it “Input Password 1” (using a unique identifier helps with targeting)
  3. Remove the border from the input’s appearance settings for a cleaner look
  4. Uncheck the fixed width option to allow the input to be responsive
  5. In the ID Attribute field, insert “Password1” or your desired identifier for this element.

Insert the Toggle Icon

This toggle icon will serve as the button users click to reveal or hide their password.

  1. Add an Icon element to your container group
  2. Change the container group’s layout from Column to Row to position elements horizontally
  3. Move the icon to the right side of the input
  4. Update the icon’s color to a darker blue (or your preferred color)
  5. In the Appearance tab, select the eye-slash icon to represent the default state of the toggle icon. 

2 – Configure Bubble Settings and Install the Plugin

Enable HTML ID Attributes

Before proceeding, you need to enable a specific Bubble setting that allows you to add ID attributes to elements.

  1. Go to Settings in the left sidebar and navigate to the General tab
  2. Toggle on the option labeled “Expose the option to add an ID attribute to HTML elements”

Install the Reveal/Hide Password Plugin

You’ll need a specialized plugin to handle the password visibility toggle functionality.

  1. Navigate to the Plugins tab in the left sidebar
  2. Click “Add plugins”
  3. Search for the “Reveal & Hide Password” plugin and install. You may also find the plugin through their official Bubble plugin page.
  4. Once installed, drag the Reveal element from the plugin onto your page (it won’t be visible to users)

Subscribe to Building with Bubble Newsletter

3 – Set Up States and Functionality

Create a Custom State

States allow you to track whether the password is currently hidden or visible.

  1. Select your container group
  2. Click on the “i” info icon to access element properties
  3. Select “Add a new custom state”
  4. Name the state “Hidden”
  5. Set the state type to “yes/no”
  6. Set the default value of “Hidden” state to “yes” (password is hidden by default)

Assign an ID to Your Password Input

The plugin needs to identify which input field to toggle, which requires setting an HTML ID.

  1. Select your password input element
  2. Scroll to the bottom of the Appearance tab
  3. Find the “ID attribute” field
  4. Enter “password1” as the ID
  5. Copy this ID value for use in the workflow

4 – Build the Toggle Workflows

Create the Show Password Workflow

This workflow reveals the password when the user clicks the icon while it’s hidden.

  1. Select the toggle icon element
  2. Click “Add workflow”
  3. When the icon is clicked, we want our plugin to toggle the state. Click the plus icon and select Element Actions > Toggle a Reveal
  4. Select the Reveal A element and enter “Password1” in the ID field
  5. Add a “Set state of an element” action:
    • Element: Group Password Container
    • Custom state: hidden
    • Value: no
  6. Add a condition to the workflow: “Only when Group Password Container’s hidden is yes”

Create the Hide Password Workflow

Duplicate and modify the first workflow to handle hiding the password.

  1. Copy the show password workflow
  2. Paste to create a duplicate
  3. Change the workflow condition to: “Only when Group Password Container’s hidden is no”
  4. Update the set state value to “yes”

5 – Add Conditional Formatting

Update Icon Based on State

The icon should change to reflect whether the password is visible or hidden.

  1. Select the toggle icon
  2. Navigate to the Conditional tab
  3. Add first condition:
    • When: “Group Password Container’s hidden is yes”
    • Icon: eye-slash (eye with line through it)
  4. Add second condition:
    • When: “Group Password Container’s hidden is no”
    • Icon: eye (open eye)

Conclusion

You’ve now successfully implemented a reveal/hide password feature in your Bubble application. This functionality provides users with a simple yet effective way to verify their password input, reducing frustration and improving the overall user experience on your login and signup pages.

For more Bubble tutorials on improving user authentication experiences, check out our guide on building a password strength indictor!

Get the Bubble Crash Course for FREE

Related blog posts

How To Build A Referral Program In Bubble.io (2025 Complete Guide)

In this guide, you'll learn how to add a feature in your Bubble app to generate unique referral links for users. This feature ensures that when new users sign up using those links, the referral is correctly attributed to the referring user.

How To Copy Text and Links to Clipboard in Bubble.io (Complete Guide)

In this guide, we'll walk through how to add a copy-to-clipboard feature in your Bubble app. We'll cover how to install the necessary plugins, set up copy buttons, create success notifications, and implement various copy methods for different use cases.

How to Integrate SendGrid with Bubble (Complete Guide)

In this guide, you'll learn how to integrate the Sendgrid API with your Bubble application to send dynamic email templates populated with your app's data!

How to Use Backend Workflows in Bubble.io (Complete Guide)

In this guide, learn the basics of backend workflow, how they can help handle non-critical tasks as a result of specific user actions. We'll show you how to create a backend workflow using a user signup process as an example.

This website uses cookies. Click to read more below. Read more.