I'm trying the following from this Cool Solutions Article
in a simple new flow. I pasted the complete code as inline script on the
request_form. When the Request loads, it doesn't work. When checking the
JavaScript errors generated, I get one JavaScript error, saying "form is
not defined".

I'm getting the feeling I'm missing something quite simple here.