Gossamer Forum
Home : Products : Gossamer Links : Discussions :

pre-fill new fields (pull-down menus) in modify.html

Quote Reply
pre-fill new fields (pull-down menus) in modify.html
Hi everyone,

i use this variable in globals to auto-generate drop-down menus in add.html:


sub {
my %hash;
my $form_names_array_ref = $DB->table('Links')->form_names->{'Einsendeschluss'};
my $form_values_array_ref = $DB->table('Links')->form_values->{'Einsendeschluss'};
foreach my $form_name (@{$form_names_array_ref}) {
foreach my $form_value (@{$form_values_array_ref }) {
$hash{$form_name} = $form_value;
}
}
my $html = $DB->html ( ['Links'], $IN );
return $html->select ( {
name => 'Einsendeschluss',
value => $IN->param('Einsendeschluss'),
values => { %hash }
});
}


Now i have a problem with the modify.html:
How can i pre-fill the Drop-Down menu in modify.html like the text-fields?
And how can i do this for check-boxes (if column-value="Yes" then box is checked) ?

Thanks in advance!

Coyu

Last edited by:

Coyu: Jul 28, 2003, 6:34 AM
Subject Author Views Date
Post pre-fill new fields (pull-down menus) in modify.html Coyu 1051 Jul 28, 2003, 6:33 AM