Services Plugins FAQs

Performance information

Hello, I would like some simple information.
I have a button in my app that needs to perform a certain action under certain conditions.
For how bubble is structured, is it better to set 3 different workflows for that button, setting the condition directly on the workflow? Or is it better to create a single workflow and insert the various conditions within it?

image

Hello @edmondum.

Thanks for reaching out,

Replying to your question - it is better to create 3 different events for 1 particular function, if this function has 3 different conditions, and implies different workflows for those conditions.
Example:
1. (Event) - When the page is loaded > (Only when) Current user is admin > (Action) Display data in the group Admin
2. (Event) - When the page is loaded > (Only when) Current user is not admin > (Action) Show popup “Not Admin”
3. (Event) - When the page is loaded > (Only when) Current user is not logged in > (Action) Go to page Signin

For additional info, please check: https://manual.bubble.io/building-workflows/general-principles

I hope it helps.

1 Like