Button color change based on a specific condition

Currently, we can only use a condition to hide or show the button. Would love to see the feature that the color of “Button” (like “submit”) changes based on a specific condition. For example, if a previous condition is met, the color of the button will turn from light to dark (pretty similar to the last step of “Buy button”—“Place order”). And of course, users can’t submit when the button has a light color while if the colors turns to dark, users will be allowed to perform the action.

This may not be what you are EXACTLY looking for, but you can make a button show when the customer is ready.
Create a “Buy” button (possibly an image)
Then under the “Features” add a Condition -
image

I have a mockup here that uses a Switch to get the next thing to show.

Here is the app - the next step is not shown until the user clicks/switches the component.
https://9emis.glideapp.io

Yep, I did the same, using a switch. It works fine.

@spencersRus @Christophe_HK Thanks for the reply. I know we can use a condition to hide/show the next thing/action. Like this:

But I would like to see the feature that the button color changes when a condition is met. Like this:

There’s a workaround, I think. You need two buttons, one with the first color and linked to “no action”. This button would be displayed as long as the checkbox is not checked, via a display condition. And once checked, the second button, linked to checkbox = true, would appear.

@Christophe_HK That’s a fantastic idea! It works!!

2 Likes

How do you set a button to ‘no action’?

Hi, @Jeff_Hager

Here is what I did: for the action of the “Button”, I chose “Open as link”; and the link is directed to a text. In the end, users can see the button with light color but can’t click on it. Hope it makes sense to you :slight_smile:

2 Likes