Gossamer Forum
Home : Products : DBMan : Customization :

Conditional field problem

Quote Reply
Conditional field problem
I'm having a problem passing the value to a field that is dependent on another. In db.cgi in the sub add_record, I added after

unless ($per_admin) {
($auth_user_field >= 0) and ($in{$db_cols[$auth_user_field]} = $db_userid);
############################ The following:
if ($in{'Your_Rank'} eq ('Shodan' | | 'Nidan' | | 'Sandan' | | 'Yondan' | | 'Godan'))
{
$in{'Yudansha'} = 'Yes';
}
else {
$in{'Yudansha'} = 'No';
}
}
######################
same for the modify_record. I always get a result of 'No'. I dbl checked field names and the spelling of values. Am I missing something obvious? Thanks.
-Brian
Subject Author Views Date
Thread Conditional field problem bboru 965 May 6, 2000, 9:53 AM
Post Re: Conditional field problem
JPDeni 927 May 5, 2000, 10:40 PM
Post Re: Conditional field problem
bboru 920 May 6, 2000, 6:29 AM