Skip to main content
← Data, API & Backend
Data, API & Backend September 28, 2022 · 9 replies

How to let user open two different screens given different response

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

I have a Screen A pointing to scree B, I'd like it to point it to scree C instead if the backend response is different, how could I achieve that?

9 replies

Divyansh September 28, 2022

Fred, could you provide some details, feels tricky but I feel it could be achieved in a different manner, wanna try to help if possible.

Fred September 28, 2022

but how do I setup custom state pages from Xano? Is error 404 for istance would be a function returning only the number 404?

Fred September 29, 2022

I watched the video and I perfectly understand I can bind screens to error status pages or empty lists or other statuses that are part of HTTP response exceptions. What about all the other cases? If I want to bind a page not to an exception but to a certain variable value, is inducing a status error code the only way to bind it with Bravo Figma tags? 
In the example there is also mention of binding the screens to role access, but that part it doesn't get explained

app.monster September 29, 2022

The roles would work the same. For example: An admin would return the status code 123 and a normal member 124. The code number would basically replace the variable.

app.monster September 29, 2022

I'm going to DM you another tutorial where I explain the user permission block a little closer.

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord