Change the colour of the text to green

Hi all, I need help with the following :

  • List item

How to trigger an event from backed to frontend when data changes. I need to solve the issue that I am having ; I need to know how once we change data in backend it should automatically be reflected/recognized in frontend . I would really appreciate any feedback that you might all have.

You can use a Do When Condition Is True event… or trigger a Custom Event When Data Changes… depending on exactly what you’re trying to do…

Thanks, I want the changes to happen on the backend workflow … I am trying to trigger a backend event but it isnt working

Ah, ok (you said front-end in your original post)…

In that case you should just be able to use a Database Trigger…

What’s the specific problem you’re having with it?

A workflow event such that the following happens:

  • When there is an update to the database (ie a new record added), then
  • color of one of boxes turns into a colour

I will need to solve the about issue!

Thank you

I don’t really understand the use case here (or why you need to use a backend workflow for this?)…

But, if you want the box to change colour when some specific data has changed, then you’ll need to add a field (or a datatype) to the database to mark that has happened, then use that data as the basis for your conditions…

1 Like

Do you mind giving an example …

Thank you !

The simplest way is to set the condition of this element that should be set to green. You can consider created date for example or add another status / state to the database table for that particular thing. Ofc assuming that making that object green is really important for your application UX.

If all what you want to do is just mark a thing that is newly added - then I would just define what it means that object is new, for example:

  1. Object has been created at least 3 days ago etc. (then you use created date field)
  2. Object has been opened by user (then you need to add additional field that will mark object opened)

Depending on your case you might consider those two.

The way you can transfer data between backend and frontend is via API calls. (API Connector)
You can’t currently return data directly inside the editor inside workflows.

Thank you very much for the feedback , I really appreciated as I’m new in bubble .

But they want the workflow to happens from backend . Once a record has been modify or add the colour of that should also change in the frontend …

Do you have any useful link/site that can be useful?

Thank you very much!

@brunillda.isaku

But they want the workflow to happens from backend . Once a record has been modify or add the colour of that should also change in the frontend …

I’m not entirely sure I know what you mean (I’m not even sure you know what you mean)?..

What data exactly are you trying to change on the backend?

1 Like