narayan Posted May 22, 2013 Report Share Posted May 22, 2013 In my system there is 2 user. Admin and User from a single lo-gin screen how should i navigate to a particular page. I have use this link but its not working http://howto.caspio.com/authentication/ ... reens.html Please help me ASAP Quote Link to comment Share on other sites More sharing options...
0 MayMusic Posted May 29, 2013 Report Share Posted May 29, 2013 You should be able to send them to different using this script: <script> if("[@authfield:Position]" == "Admin"){ window.location = "http://www.mysite.com/manager.html"; } else if ("[@authfield:Position]" == "User"){ window.location = "http://www.mysite.com/staff.html"; } else{ window.location = "http://www.mysite.com/other"; } </script> Make sure you have replaced Position with your field name which holds Admin/User. Quote Link to comment Share on other sites More sharing options...
Question
narayan
In my system there is 2 user.
Admin and User
from a single lo-gin screen how should i navigate to a particular page.
I have use this link but its not working
http://howto.caspio.com/authentication/ ... reens.html
Please help me ASAP
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.