Hi Matt,
I tried the same: @GetField returns an array (I assume it is standard behavior, but the documentation does not describe the return type in detail) so the first line should read:
var form = @GetField("form")[0];
This is what works for me.
Regards,
Patrik