Conditionally Set Width of Reusable Element - or switch between them?

I have a “Side Bar Menu” set as a reusable element for all of my App Pages:

As you can see, at the bottom of the Menu I have an item which allows the user to toggle the Menu Bar, so that it only displays the Menu Icon, which would look like this:

image

These are 2 different reusable objects. I want the user to be able to click on “Show/Hide” at the bottom of the Menu to switch between these reusable objects, which will give the main screen more screen real estate. I cannot for the life of me work out how to swap out the reusable element using Conditions or any Worflow Steps.

I’d really appreciate any insights or ideas, please!

Thanks,
Adam

I resolved this as follows:

I added a Field to the User Table: “MenuStructure” (yes/no).
I added both Menus to every Page, initially set to “Hidden”.
I included a Conditional State to look up “MenuStructure” for the Current User and, based on yes/no, I Show the appropriate Menu.
The Toggle Switch on the Hide/Show Menu Item runs a Workflow to update the “MenuStructure” in the Current User’s Record, accordingly.

It may not be elegant - and the change has to be manually applied to every Page in my App - but it works!

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