Sample code for passing parameters to a form from a view

Sample code for passing parameters to a form from a view


Can someone please point me to sample code for how to pass a parameter when opening a form from a custom action in a view? 

I've created a function with an openURL statement for the form I want to open, which works.  However, I can't figure out the syntax for passing the function parameter through to the On Load action in the form.  The error msg says that the input.RefVar is null in the On Load action.

Thanks.