Skip to content

Instantly share code, notes, and snippets.

/gist:979928
Created May 19, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.