Skip to main content

How to code a dashboard button that knows which user plan to redirect to while preventing data loss?

Hello guys!
First of all big thanks to Memberstack team for an amazing product đŸ”„

I’m building my frist project now and stuck with the “Dashboard” button inside navbar.

So I have a “board members plan” and “clients plan”

I want to have “dashboard” button that works both ways depending on member plan. So when “client” clicks, this button forward to the client’s dashboard. And when “board” member click on the same button it would forward to the board’s member dashboard.

I hope I explained that correctly 🙂
Thank you in advance!

5 comments

  • Igor Berya
    Igor Berya OP

    Ok, I found it đŸ€“
    data-ms-action=„login-redirect“

    0
  • Duncan from Memberstack
    Duncan from Memberstack

    Awesome!! Thanks for sharing the solution 😁

    0
  • Maxim Dobroneckii
    Maxim Dobroneckii

    Hi all, is there any solution to show users an alert if they didn’t click save button when making changes in their dashboard?

    0
  • Raquel  Lopez
    Raquel Lopez

    You can create a solution adjusted to your particular forms by using custom code. You can rely on Rey for help or modify this script to fit your form https://medium.com/@techsolutionstuff/how-to-display-unsaved-changes-browser-warning-f3192c8ef62e

    0
  • Maxim Dobroneckii
    Maxim Dobroneckii

    thank you Raquel Lopez

    0

Please sign in to leave a comment.

Sitemap