# Workflow conditionals

**URL:** <https://forum.bubble.io/t/workflow-conditionals/258195>\
**Category:** Need help\
**Created:** [April 18, 2023, 11:42am UTC](https://forum.bubble.io/t/workflow-conditionals/258195 "2023-04-18T11:42:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luiz.o.rodrigues](https://avatars.discourse-cdn.com/v4/letter/l/50afbb/32.png) [@luiz.o.rodrigues](https://forum.bubble.io/u/luiz.o.rodrigues)\
**Post date:** [April 18, 2023, 11:42am UTC](https://forum.bubble.io/t/workflow-conditionals/258195/1 "2023-04-18T11:42:47Z")

</div>

Hello, guys.

I’m struggling with something I thought was easy, but I cannot go any further…

I’ve a selection that a user has to made to describe how is the activity status. The first stage, there is no activity going on. When the user selects the activity it becames red (demanded but not started yet) , when the user clicks again it becames yellow (activity started) and clicking again it becames green (activity done), such as below.

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

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

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

To that I’m using a database with 3 columns, each one to each stage. The right flow would be: Fill column “Pendencias” (Red), then with the second click remove from “pendencias” and add to “PendenciaIniciada”, then in the last click remove from “PendenciaIniciada” and add to “PendenciaResolvida”

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

I’m struggling to define a Only When constrain to do that, because it is adding to the columns in a different order than I want to . I’m trying with just one wf for that with make changes in a row.

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

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/5/05c33175c30c9e3fb2ea7db2d6e8888791e2f8d4.png)

I also have a TimeStamp type that I want to register the time of each click: Fist click (Current time to HTi), second click (Current time to Hi) and final click (Current time to Hf)

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

Someone please can help me? Thanks!

---

<div class="post-metadata">

**Author:** ![jmalmeida](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jmalmeida/32/120123_2.png) [@jmalmeida](https://forum.bubble.io/u/jmalmeida)\
**Post date:** [April 18, 2023, 12:39pm UTC](https://forum.bubble.io/t/workflow-conditionals/258195/2 "2023-04-18T12:39:48Z")

</div>

I’d do it with:

- one field of type Option Set: “Status”
- 3 fields of type timestamp: Demanded at, Started at, and Done at.

Create an Option Set called “Status” , with 4 options: Not initiated, Demanded, Started, Done.

When the user clicks:

- you change the status based on the status the user is in. (You could even add a parameter to the Option set of type number and just +1 each time the user clicks until Done)
- you save the timestamp corresponding to the status.

---

<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:** [June 27, 2023, 11:43am UTC](https://forum.bubble.io/t/workflow-conditionals/258195/3 "2023-06-27T11:43:33Z")

</div>

Closed on June 27, 2023, 11:43am UTC

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