# Basic question on element is clicked dialog box in workflow

**URL:** <https://forum.bubble.io/t/basic-question-on-element-is-clicked-dialog-box-in-workflow/10333>\
**Category:** Need help\
**Created:** [February 8, 2017, 7:25am UTC](https://forum.bubble.io/t/basic-question-on-element-is-clicked-dialog-box-in-workflow/10333 "2017-02-08T07:25:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![debbielefkowitz](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/debbielefkowitz/32/9822_2.png) [@debbielefkowitz](https://forum.bubble.io/u/debbielefkowitz)\
**Post date:** [February 8, 2017, 7:25am UTC](https://forum.bubble.io/t/basic-question-on-element-is-clicked-dialog-box-in-workflow/10333/1 "2017-02-08T07:25:48Z")

</div>

Hi, newbie here. Have been working through a set of tutorials. I want to set up a basic if this and that statement triggered by button click in a workflow. The Button click dialog box in the tutorial shows the Element and the and when pull down menu. When I click the button click element I get a version of the dialog box that does not include the and when pull down menu. What am I missing?

---

<div class="post-metadata">

**Author:** ![fayewatson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fayewatson/32/2686_2.png) [@fayewatson](https://forum.bubble.io/u/fayewatson)\
**Post date:** [February 8, 2017, 8:00am UTC](https://forum.bubble.io/t/basic-question-on-element-is-clicked-dialog-box-in-workflow/10333/2 "2017-02-08T08:00:40Z")

</div>

Hey Debbie, Welcome to the Forum! 🙂

When setting up a workflow for a button, you can specify other conditions which must be met before running the Event’s actions using the “Only When” input box:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/a/a6823b4949c5e1bc89bb07060be501140fba3052.png)

In this example, the workflow is “When Button is clicked and the Current User is logged in” → Animate the Button. The Animate properties are found within the Element Actions category:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/e/e6270b8ad19d18da5379b0238087265e6f544340.png)

I think the tutorial for the button click first shows setting up conditional statements which can be accessed in the Button’s property editor. If you’re in the Design tab, double-click on the button and click on the “Conditional” tab here:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/6/69b885ceaa07e916aca9522c39c68ce0b08e56bb.png)

 ![](https://us1.discourse-cdn.com/bubble/original/2X/6/6496dc020aba0401356591ec710812a335766c41.png)

In this conditional statement, it states when the button is hovered → change the background color to orange. Conditional statements are used to change the properties of an element (style, visibility, background color, border, font, text, and more depending on the element). If you’d like to preview a property change associated with a conditional statement, you can toggle the effect using the “on/off” button in the top left of the statement:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/3/36010e737056fe6b6ebaba53c2bde5b6fa3f34d6.png)

If any of this was confusing or if you have any questions at all, feel free to let me know and we can definitely assist!

---

<div class="post-metadata">

**Author:** ![debbielefkowitz](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/debbielefkowitz/32/9822_2.png) [@debbielefkowitz](https://forum.bubble.io/u/debbielefkowitz)\
**Post date:** [February 8, 2017, 8:13am UTC](https://forum.bubble.io/t/basic-question-on-element-is-clicked-dialog-box-in-workflow/10333/3 "2017-02-08T08:13:04Z")

</div>

Hi Faye,

Thanks for fast reply. I’ll check this out in the morning. Looks like you guys just changed from when and to when only when.

---

<div class="post-metadata">

**Author:** ![fayewatson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fayewatson/32/2686_2.png) [@fayewatson](https://forum.bubble.io/u/fayewatson)\
**Post date:** [February 8, 2017, 8:20am UTC](https://forum.bubble.io/t/basic-question-on-element-is-clicked-dialog-box-in-workflow/10333/4 "2017-02-08T08:20:24Z")

</div>

Ohh yes, that did change. You can also create “only when” conditions for Actions now (a relatively new feature from December). 🙂 Here’s that post with more info:

> [@\[New Feature\] Action conditions](http://forum.bubble.io/t/new-feature-action-conditions/9130):
>
> We just pushed an exciting change to the workflow engine, which will be handy as soon as you have complex logic in your app. You can now define conditions at the action level. Very much like what you do for events, but for the action. In run mode, when an action has a condition that is no, the action will be skipped entirely. Obviously, actions without a condition will run 100% of the times. Don’t forget to use the debugger to see if an action runs or not (and why). This will help si…

---

<div class="post-metadata">

**Author:** ![debbielefkowitz](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/debbielefkowitz/32/9822_2.png) [@debbielefkowitz](https://forum.bubble.io/u/debbielefkowitz)\
**Post date:** [February 8, 2017, 9:27pm UTC](https://forum.bubble.io/t/basic-question-on-element-is-clicked-dialog-box-in-workflow/10333/5 "2017-02-08T21:27:53Z")

</div>

Thanks for the help Faye. Works great!

---

<div class="post-metadata">

**Author:** ![fayewatson](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fayewatson/32/2686_2.png) [@fayewatson](https://forum.bubble.io/u/fayewatson)\
**Post date:** [February 8, 2017, 10:02pm UTC](https://forum.bubble.io/t/basic-question-on-element-is-clicked-dialog-box-in-workflow/10333/6 "2017-02-08T22:02:22Z")

</div>

Awesome! 🙂 No problem at all!

---

<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:** [April 19, 2017, 7:33am UTC](https://forum.bubble.io/t/basic-question-on-element-is-clicked-dialog-box-in-workflow/10333/7 "2017-04-19T07:33:31Z")

</div>

Closed on April 19, 2017, 7:33am UTC

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