Hi Alex, you can't call the function from the view, you would have to pass it somehow or re-define it there, but the question is why?.
Normally you would just write {{=form}} in the view to display the form
returned form the function.
Regards,
Denes
--

