Formula and Javascript

Hello,

I am working on a web based application. User will be authenticated using domino custom login page. I would like to open appropriate page upon successful authentication. For example, If MasterUser then URL1 else URL2. Without knowing the user name I can not perform the lookup. On Login button, I have a JS. I don’t know how to perform lookup upon submission of the page?

Can any one guide me?

Thanks

MS

Subject: Formula and Javascript

Manish,

Put JavaScript on the form that loads after successful login and have it perform the If MasterUser then location = “URL1” else location = “URL2” logic.

You could put this JavaScript code in the onLoad event, but if you want to include @formula language in Computed Text to get values from fields on the form, it would be better to put the code directly on the form and marked as Pass-Thru HTML. Don’t put all the code in a function – you want it to run immediately when the form loads.

Ken