<& '/widgets/profile/hidden.mc', name => "$widget|save_selected_id_cb", value => $object, &> <& /widgets/profile/select.mc, name => $name, value => $sel_id, options => $vals, useTable => $useTable, width => $width, indent => $indent, disp => $disp, size => $size, req => $req, readOnly => $readOnly, localize => $localize, js => $js, multiple => $multiple, &> <%args> $widget $object $vals $width $indent => FIELD_INDENT $disp => '' $useTable => 1 $readOnly => 0 $req => 0 $size => undef $js => undef $sel_id => undef $localize => 1 $multiple => 0 <%init>; my $sub_widget = "$widget.$object"; my $name = get_state_data($sub_widget, 'form_name'); $sel_id = get_state_data($sub_widget, 'selected_id') unless defined $sel_id;