Probably a really simple answer to this one. Try to set the value selected from a radio button in a CGI task.
Here is how I am setting up the radio elements:
my
@review =
(
{name => "typea",
label => "Type A"}
{name => "typeb",
label => "Type B"}
{name => "typec",
label => "Type C"}
);
Here is how I am printing them in the form:
for my $ref (
@$review ) {
my $name = $ref->{name};
my $label = $ref->{label};
#my $value = $task->GetVariable($name);
print '<tr><td><input type = "radio" name= "review_type"
value="', $name,
'">', $label, '</td></tr>', "\n";
}
Which outputs fine (notice I hardcoded the name value)
Can I set the value in this fashion:
for my $href (
@revieew) {
my $name = $href->{name};
my $value = $cgi->{form}{$name};
$job->SetVariable($name, $value);
It doesn't work for me
Any help would be greatly appreciated
Lucas Cochrane
lucas.cochrane@baucanada.com