I am new to Bubble.io and am trying to build a web based SPA. There are many different tabs within my menus which will then show/hide hundreds of different elements. For example lets say there are 9 different menu buttons and each menu selection would have a dashboard of 8 different element reports.
I am looking to create a simple workflow that would mean when Menu Button 1 is pressed only those reports are shown and the remaining 8 menu reports are hidden.
What is the best way to do this? I have tried custom states but struggling to wrap my head around them.
Custom states are definitley the way to do this, so it’s worth spending some time getting to grips with them.
Put simply, you just need conditions on your elements to only be visible when a custom state has a certain value, then set that value when a specific button is pressed.
That way you can show and hide multiple elements with a single workflow.
That does make perfect sense but I have one question. If I then hit menu button 2 which had conditions to make x and Y elements visible would that not mean that the Menu button 1 and Menu button 2’s elements are showing at the same time?
Or would it automatically hide the elements of menu button 1?
It would automatically hide them, because the condition that makes them visible is no longer true! This is exactly how I build my single page apps and I was pleasantly surprised at the little magic