Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2011 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/979928 to your computer and use it in GitHub Desktop.
Save anonymous/979928 to your computer and use it in GitHub Desktop.
use lib '/data/WebGUI/lib';
use WebGUI::Test;
my $session = WebGUI::Test->newSession() or die;
my $f= WebGUI::FormBuilder->new($session);
$f->addField("Integer",
name => 'gauge',
value => 55,
label => 'Gauge',
);
print $f->toHtml;
__END__
outputs:
<form method="POST" enctype="multipart/form-data" class="wg-formbuilder" ><div class=" wg-form-integer" id="gauge_formId_row"><label class="formDescription " for="gauge_formId">Gauge</label><input id="gauge_formId" type="text" name="gauge" value="55" size="11" maxlength="11" onkeyup="doInputCheck(document.getElementById('gauge_formId'),'0123456789-')" /></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment