Thanks. To be precise, I want to verify in a template what choices have been made in a checkbox field of a record. For example, the field/column 'Pictures' has seven possibilities, 1 to 7.
ie. <%if checkboxes 'includes' (?) #5%>... <%endif%>
This is what I had written as a global (excuse the rustic approach.)
sub {
my $tags = shift;
my $sep = chr(35);
$tags->{Pictures} =~ s/$sep/ /g;
return $tags->{Pictures};
}
but when I include <%checkboxes%> in my template I only obtain the first, lowest numbered, check box number, not ALL of those that have been chosen.
Thanks for your help
ie. <%if checkboxes 'includes' (?) #5%>... <%endif%>
This is what I had written as a global (excuse the rustic approach.)
sub {
my $tags = shift;
my $sep = chr(35);
$tags->{Pictures} =~ s/$sep/ /g;
return $tags->{Pictures};
}
but when I include <%checkboxes%> in my template I only obtain the first, lowest numbered, check box number, not ALL of those that have been chosen.
Thanks for your help