Passing parameters to a function

Passing parameters to a function

I have a function that is called from two different Views. The function opens a stateless form. When it is closed I want to return to the calling view. 

Is there a way to tell where the the function is called from? 

I tried adding another parameter to the function but in the view the only option for parameters are fields in the view. Is there an option to type a string  for the argument? 


Herb Wexler