If statement based on the view that form is launched from

If statement based on the view that form is launched from

Greetings all..

I have two views based on the same form. Is it possible to have an if statement on in the on load script when the form is launched to add a new record that executes based on which view the form is launched form...i.e....

If launched from view #1
then show this field and hide that one

Else
show a different field and hide a different one

Thanks for a great app.

Joel