diff --git a/lib/WebGUI/Form/Control.pm b/lib/WebGUI/Form/Control.pm index a13296ee2..cc87cdeb8 100644 --- a/lib/WebGUI/Form/Control.pm +++ b/lib/WebGUI/Form/Control.pm @@ -596,10 +596,11 @@ Renders the form field to HTML as a table row complete with labels, subtext, hov sub toHtmlWithWrapper { my $self = shift; if ($self->passUiLevelCheck) { + my $rawField = $self->toHtml(); # has to be called before prepareWrapper for some controls, namely captcha. my ($fieldClass, $rowClass, $labelClass, $hoverHelp, $subtext) = $self->prepareWrapper; return '