I'm sure you could make it hidden without editing form_view
Here's how to do it without making it hidden.
Form Hook: Form Start
PHP Code:
$refurl = $vbulletin->input->clean_gpc('g', 'refurl', TYPE_NOHTML);
Custom Question with following php code:
PHP Code:
if (!$q[$formbit[id]]) $q[$formbit[id]] = $refurl;
$answer = '<input type="text" readonly="readonly" id="q_' . $formbit[id] . '" name="' . $formbit[id] . '" value="' . $q[$formbit[id]] . '" />';