I tried to use this in GL 3.2.0 and it works.
my ($select_db, $select_field, $select_default) = @_;
my $html = $DB->html ( [$select_db], $IN );
return $html->radio ( { name => $select_field, value => $select_default });
}My first question: Isn't there a build-in way in 3.2.0?
My second question: To use it in include_form (in error-case or modify-case), I need the selected value instead of the default value as third parameter. Then the default parameter will be the first in the def-file, I guess?
Regards,
Chris
Code:
sub { my ($select_db, $select_field, $select_default) = @_;
my $html = $DB->html ( [$select_db], $IN );
return $html->radio ( { name => $select_field, value => $select_default });
}
My second question: To use it in include_form (in error-case or modify-case), I need the selected value instead of the default value as third parameter. Then the default parameter will be the first in the def-file, I guess?
Regards,
Chris