Skip to main content
← Data, API & Backend
Data, API & Backend August 4, 2022 · 1 reply

Activate pages based on user choices...

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

Hi everyone! I'm newby here and super happy to have found this community! I'm building an app where users can "like" different cards that he can later on find on dashboard. This is the journey:

  1.  User finds 6 options to "like"
  2. User "likes" just 3
  3. User open dashboard page and find the 3 cards activated

I'm trying to understand if Conditional Visibility is the way to do this, but i'm stuck with Karla's tutorial since i dont know how to build the json file. Is there any other way to build this?
Thanks in advance!!

1 reply

app.monster August 7, 2022

Welcome!
The conditional visibility for the like feature is built in. Have you had a look at this? https://docs.bravostudio.app/bravo-tags/interactive-component/stateful-component-like-button
To display the correct liked items of the user you first have to either set up a login system or use their device.id. There are other tutorials on serving user accounts. Then you have to connect the like action to the particular user in order to filter for them in the dashboard page.
Hope this gets you started!

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