How to code a dashboard button that knows which user plan to redirect to while preventing data loss? Answered
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!
Comments
5 comments
Ok, I found it đ€
data-ms-action=âlogin-redirectâ
Awesome!! Thanks for sharing the solution đ
Hi all, is there any solution to show users an alert if they didnât click save button when making changes in their dashboard?
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
thank you Raquel Lopez
Please sign in to leave a comment.