Gossamer Forum
Home : Products : DBMan : Customization :

Search/radio buttons

Quote Reply
Search/radio buttons
I am trying to get the radio buttons to only appear when the record has a certain value in the Segment field. What I thought would work would be an if statement in the html_modify_form. ie. right the print statement for the radio button. If it was valid print the button otherwise print NA. But it doesn't work. I was testing on
$rec{'Segment'} eq $current_segment
I'm thinking the $rec field isn't filed in at that point.

An example of search results ....if segment was equal to 3.
NA Admin 2 Duke
Radio Admin 3 Kansas



$rec_count = 1;
print "<table>";
for (0 .. $numhits - 1) {
%tmp = &array_to_hash($_, @hits);
print qq|<TR><TD valign=top><INPUT TYPE=RADIO NAME="modify" VALUE="$tmp{$db_key}"></TD>|;
&html_record (%tmp);
print "</tr>";
++$rec_count;
}

Thanks for the help!