# Button won't become clickable despite conditionals

**URL:** <https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793>\
**Category:** Bugs\
**Created:** [May 17, 2024, 2:09pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793 "2024-05-17T14:09:03Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucascamp75](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucascamp75/32/207211_2.png) [@lucascamp75](https://forum.bubble.io/u/lucascamp75)\
**Post date:** [May 17, 2024, 2:09pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/1 "2024-05-17T14:09:03Z")

</div>

I’m trying to create a “Save changes button”, but I’m struggling to make it work when I change the user’s profile picture.

I’ve set up the following logic: _user clicks on delete profile picture button → a popup asking “are you sure?” is displayed → user clicks “yes” → state “profile picture changed” of the button save changes is set to “yes” → it becomes clickable_

However, it just won’t become clickable.

In my latest try I’ve set the button to be unclickable by default and to become clickable if the “profile picture changed” state is set to “yes.” The state changes, yet the button just won’t become clickable:

![image](https://us1.discourse-cdn.com/bubble/original/3X/0/1/0102ea58b7c91185ec3a4e41fc736afbd2c2a837.png)

![image](https://us1.discourse-cdn.com/bubble/original/3X/d/d/dd1d77e208b000123a6cb51f6e56747ffa1ddf56.png)

It doesn’t work if I do the opposite (setting the button to be clickable by default and to become unclickable if the state is “no”) either.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [May 17, 2024, 2:10pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/2 "2024-05-17T14:10:31Z")

</div>

What is the element setting?  
What the last condition in green do? (probably just layout stuff… but just to be sure) . Any other condition that could make it not clickable?

---

<div class="post-metadata">

**Author:** ![lucascamp75](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucascamp75/32/207211_2.png) [@lucascamp75](https://forum.bubble.io/u/lucascamp75)\
**Post date:** [May 17, 2024, 2:16pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/4 "2024-05-17T14:16:24Z")

</div>

_What is the element setting?_  
What do you mean by “element setting”?

_What the last condition in green do? (probably just layout stuff… but just to be sure)_  
Yes, layout stuff. It’s a conditional in the button’s style.

_Any other condition that could make it not clickable?_  
No. I had other conditions, relating to other fields being modified, but removed them to isolate this behavior.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [May 17, 2024, 2:27pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/5 "2024-05-17T14:27:02Z")

</div>

Nevermind for settings. In your screenshot, there’s something strange. You have condition 1… twice! There’s an issue somewhere. Try to cleanup the condition (maybe delete the first one and create a new one under condition 3)

---

<div class="post-metadata">

**Author:** ![lucascamp75](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucascamp75/32/207211_2.png) [@lucascamp75](https://forum.bubble.io/u/lucascamp75)\
**Post date:** [May 17, 2024, 2:30pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/6 "2024-05-17T14:30:22Z")

</div>

I can’t change condition 3. It’s like there’s 2 sets of conditions, one is automatically set by Bubble and static, the other is set by me:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/f/8f822d2fee5194cb2a57ab29b8b69960d94f9a01.png)

In the screenshot, the condition 3 is “_When This Buttion isn’t clickable_”

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [May 17, 2024, 2:36pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/7 "2024-05-17T14:36:54Z")

</div>

I see. Other are set on the styles. This is why you have the condition 1 twice. Actually, I think it’s more a Bubble bugs so you should submit a bug report. Condition 3 of style shouldn’t be green if Condition 1 of element is yes…

---

<div class="post-metadata">

**Author:** ![lucascamp75](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucascamp75/32/207211_2.png) [@lucascamp75](https://forum.bubble.io/u/lucascamp75)\
**Post date:** [May 17, 2024, 2:37pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/8 "2024-05-17T14:37:26Z")

</div>

Thanks! I’m gonna report this as a bug then

---

<div class="post-metadata">

**Author:** ![EffortlessSolutions](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/effortlesssolutions/32/217253_2.png) [@EffortlessSolutions](https://forum.bubble.io/u/EffortlessSolutions)\
**Post date:** [May 20, 2024, 11:14am UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/9 "2024-05-20T11:14:40Z")

</div>

@lucascamp75  
I guess your application is on version 26 or later because this is not a bug rather than the fact that Bubble has applied a modification version 26 so that the conditions applied on an element’s style override always the conditions defined on the element itself.  
In other words, if you have a “Button” element and in the “Styles” tab for this button, you have a condition that sets the button background color for Yellow, and then if you add this button to your page and add a condition where you set this button’s background color to Green. It will always be displayed “Yellow” (i.e. the color that was inherited from the button Style).  
Please check out the below link to see Bubble announcement for version upgrade 26 which adjusts the style override behaviour:

> [@\[Upgrade to Bubble Version 26\] Adjustment to style overrides behavior with style conditionals](https://forum.bubble.io/t/upgrade-to-bubble-version-26-adjustment-to-style-overrides-behavior-with-style-conditionals/283323):
>
> Hi everyone, We’ll soon be releasing a new Bubble Version so that style conditionals will now override style overrides when applying a property to an element. Previously, a style override would take priority over a style conditional. Here’s an example, where you have a text element with a style: This style gives the element the font color blue This style has a conditional that when “Current user is current user” (so always true), the font color should be green You override the style on the te…

Having said that, to solve your issue, you will have to modify the style of your button OR create another Button style without the “This button isn’t Clickable” condition in the “Style” itself then use this button on your page.

Hope this solves problem ! Let me know should you need any further support.

---

<div class="post-metadata">

**Author:** ![lucascamp75](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucascamp75/32/207211_2.png) [@lucascamp75](https://forum.bubble.io/u/lucascamp75)\
**Post date:** [May 20, 2024, 1:47pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/10 "2024-05-20T13:47:41Z")

</div>

Thanks for your reply!

I don’t understand why I need to change the style though. The conditional applies to _when the button isn’t clickable_, i.e. it doesn’t make the button clickable or not, which is where my issue lies.

---

<div class="post-metadata">

**Author:** ![EffortlessSolutions](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/effortlesssolutions/32/217253_2.png) [@EffortlessSolutions](https://forum.bubble.io/u/EffortlessSolutions)\
**Post date:** [May 20, 2024, 2:57pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/11 "2024-05-20T14:57:32Z")

</div>

Please let me know if you can give me access to your application so I can better investigate into your issue. Always happy to help !

---

<div class="post-metadata">

**Author:** ![EffortlessSolutions](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/effortlesssolutions/32/217253_2.png) [@EffortlessSolutions](https://forum.bubble.io/u/EffortlessSolutions)\
**Post date:** [May 20, 2024, 6:58pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/12 "2024-05-20T18:58:42Z")

</div>

@lucascamp75 Thanks for giving me the access to your application.  
Kindly find below my findings:

Actually, I checked it out and it’s working. Once I delete the profile picture, the “Save changes” button becomes clickable but it’s just that its background color doesn’t change so it only seems like it isn’t clickable !!

In your form, there are 2 Fields other than the profile picture (Name & Description):  
Name: Cannot be empty  
Description: Can be empty

So…

If you delete the profile picture while the field “Name” is empty, then the button “Save changes” becomes clickable but its color stays grey since the field “Name” is empty !

If you would like to make the button’s color turn into the “Blue” color, you have to do the following:  
1 - Delete the profile picture → Here the button will be clickable but with a grey color (try to hover it with the mouse and you’ll see that it’s clickable).  
2 - Write any text in the “Name” field → Here the button will change its color to Blue color.  
Only then the button color will change to Blue.

Please give it a try as I didn’t modify anything and let me know if you need any further information.

---

<div class="post-metadata">

**Author:** ![lucascamp75](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucascamp75/32/207211_2.png) [@lucascamp75](https://forum.bubble.io/u/lucascamp75)\
**Post date:** [May 20, 2024, 7:24pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/13 "2024-05-20T19:24:03Z")

</div>

> [@EffortlessSolutions](#):
>
> Once I delete the profile picture, the “Save changes” button becomes clickable but it’s just that its background color doesn’t change so it only seems like it isn’t clickable !!

Why do you think that is? On the debugger it says it’s not clickable, and therefore the button won’t become blue.

But if it is clickable, that shouldn’t happen. Is that a bug?

---

<div class="post-metadata">

**Author:** ![EffortlessSolutions](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/effortlesssolutions/32/217253_2.png) [@EffortlessSolutions](https://forum.bubble.io/u/EffortlessSolutions)\
**Post date:** [May 22, 2024, 3:08pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/14 "2024-05-22T15:08:43Z")

</div>

Well it’s not a bug. The button is in your page isn’t clickable after deleting the profile picture because your form didn’t pass the validation. (i.e. there is an empty field that shouldn’t be empty) in your case it’s because your “Name” field is empty while if you type anything in it then your button will turn to the Blue color.  
This is due to validating fields in your page. I believe in your case, it would be great to mark this field with a RED “\*” so that users know that it’s a required field and cannot be left empty.

Please don’t hesitate to reach out to me should you have any questions, always happy to help !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [July 26, 2024, 2:09pm UTC](https://forum.bubble.io/t/button-wont-become-clickable-despite-conditionals/322793/15 "2024-07-26T14:09:32Z")

</div>

Closed on July 26, 2024, 2:09pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
