Skip to main content
All CollectionsGetting Started
How can I hide a button so it is pressed once per user?
How can I hide a button so it is pressed once per user?
Updated this week

How can I hide a button so it is pressed once per user

If you're looking to hide a button after it has been pressed once by a user in your Glide app, follow these simple steps:

Step 1: Add a Boolean Column

First, you need to add a User-Specific Boolean column in your data editor. This column will be used to determine whether the button has been pressed by the user or not.

Step 2: Create an App Interaction Workflow

Next, you need to create an app interaction workflow. This workflow will involve a 'Set Column Value' action that updates the Boolean column.

  1. Select the Button component in the Layout Editor

  2. Where you set the button's action, find and select Create new workflow

  3. Name the workflow

  4. Add a Set Column Values action to the workflow

  5. Set the value of the Boolean column to true

Step 3: Configure Visibility Options

Now, set a visibility condition for the button. Go to the Options of the button and set the visibility condition.

  • Visibility Condition: Show component when Boolean is not checked.

By doing this, once the button is pressed and the Boolean value is set to "true", the button will disappear, making it unpressable thereafter.
​
You can take a look at this template to see how it works and copy it to your Glide Team: https://go.glideapps.com/template/JJoKdYhJ8RYkikaecPlU-template-published?privateTemplateToken=prTPEaKsytpbLEdoRrki

Did this answer your question?