Can one button to drive different page by different role?

I want use to click the one button to login and then drive the customer to the related page by his role. For example, the Customer A click the one button and show up to login his member role. Then will transfer him to go to Page A. If change to Customer B to login another role. Then will transfer him to go to Page B.

How can I make it?:smiley:

You will need an onClick() event handler which will capture the user clicking the button. In the onClick() function, you can then check the user’s role , and redirect to the correct page using wix-location.to() .

The other option is to use Routers , which will be a bit more challenging.

Thanks Yisrael, It seems an advance level knowledge and I have no idea of the wix code. Do you have any suggestion for me which step should I starting to learn?:blush:

To learn about programming with Corvid, read the following articles that will help you start working with Corvid:

If you an urgent project and don’t have time to learn enough to do what you want, you may want to check out the Wix Marketplace - it’s a place where you can look for Corvid experts for hire.

Thanks Yisrael😄

@edwinlau As questions or difficulties arise while you’re learning, the community is here to help.