Load page based on conditions

Hello all!
Is there a possibility to load a page only when a condition is true?

For example: If a user is “admin” load the page, otherwise don’t load the page.
I know that it’s possible to show or hide elements based on conditions, but I was wondering if it’s possible to load or don’t load pages based on conditions.

Thanks for your help! :slight_smile:

Hi there, @ram… if I understand your post correctly, it sounds like you want to redirect users who are not admins away from a certain page, and yes, you can do that by using the Page is loaded workflow event and adding a condition to the event so it only runs when, say, the current user is not an admin. Then, add an action to the event to send the user to a different page, and you’re good to go.

Hope this helps.


1 Like

Yes. And no.

I am FAR from a seasoned Bubbler, but I don’t think you can just navigate to a page and NOT have it load because the user is not “admin”. You probably need to put a check in the page somewhere.

And you can put that check in the “Page is loaded” workflow. Add a condition in there to check to se if the user is not “admin”. If so, then you can navigate to another page. Otherwise, the page will just open as usual.

Hope this makes sense and hope it helps.

1 Like

For some additional security, you would likely want your page container to not be visible on load, and then make a condition that makes it visible if user is admin. Otherwise that redirect can be stopped by some savvy users.


Hi guys, thank you for your quick replies!
@mikeloc My main goal is to stop the page from loading, if the user is not “admin”. I tried it with the “Page is loaded workflow” with a condition (user=“admin”), but the page still loaded…

@firstfifteensoftware I hoped that there would be a way that would stop a page from loading :sweat_smile:

Thank you both for your help :slight_smile:

You can’t stop the page from loading, but if you put in a redirect and, as flowtron pointed out, you have other security-related aspects buttoned up (e.g., hiding things on the page, privacy rules), you’ll be good to go.

Oh, and one more thing that comes to mind is not allowing the user to even attempt to navigate to the page if they aren’t an admin, but maybe you are already doing that, and you are just worried about someone who isn’t an admin trying to hit the URL some other way.

1 Like

Thank you all for your help! :slight_smile:
I made now a workflow and a condition for the page (or rather the group containing all the elements of the page).

  • Workflow: Page is loaded and current user is no admin → Go to index-page
  • Condition: Group is not visible on page load and only visible when current user is “admin”