Jan - I'm trying to follow this to create my login-redirect page. In my case, my users table has a field called WFMAcessLevel, which contains either 1 or 2. So I created an HTML page with the codes below and authenticated that HTML page.
<script>
if("[@authfield:WFMAccessLevel]" == "1"){
window.location = "http://b6.caspio.com/dp.asp?AppKey=b9443000efaa7d4f8894459cadfc";
}
else ("[@authfield:WFMAccessLevel]" == "2"){
window.location = "http://b6.caspio.com/dp.asp?AppKey=b94430003cfd158680bc46e8877b";
}
</script>
It's not redirecting - just giving me a blank screen. Am I doing this right? Or I really need to define Admin and Staff as Yes/No in my table?