Form Based on User as login

I am looking for a way to have the first form after users login be based on the user or group they belong to. Is there anyway for the frist form/grid/application that loads to be based on the user, or group the user belongs to? I really need to find a way to do this.

Thanks!

Re: Form Based on User as login

You can use sc_redir(app) based on login.

if (level == 3) {
 sc_redir(app1)
} else {
 sc_redir(app2)
}

Regards,
Scott

Re: Form Based on User as login

I am not sure if I understand this. Where would i put this code and how do I use it. I have around 4 different grids that I would like to use based on different user groups. So i have a user group 1 point to grid 1, group2 points to grid 2, group 3 to grid 3, group 4 to grid 4.

For the login I am using the scriptcase security module which has user, and groups built into it. Which open up a menu, and On the menu it ask to pick which application you want to load first. I am very very new to scriptcase and PHP so please forgive me if I seem clueless.

Thank!

Re: Form Based on User as login

You would place it in the login (security) app and call the menu in code instead of calling the menu as default app in IDE on submit.

Example:

Login form: onSubmit


if (level == 3) {
 sc_redir(app3.php)
} elseif (level == 2 {
 sc_redir(app2.php)
} else {
 sc_redir(menu.php)
}

Regards,
Scott.