Gossamer Forum
Home : Products : Gossamer Links : Discussions :

calculus on fields when inserting links

Quote Reply
calculus on fields when inserting links
HI,

I have created three new fields $field1, $field2, $field3 on related to the Links table. They appear on the form and its OK.

What I would like to do is to have have this calculus made
$field3 = ($field1 + $field2)/2 when the user calick on "Add links" button

(in reality there are more than two fields and the calculus is a bit more complicated)

An I would like to have visible for th user when he sees the data entered.

Where should include this calculus? In the add_record function ? in the format_insert_cgi?

Thanks in advance for your answers.

vercyb
Subject Author Views Date
Thread calculus on fields when inserting links vercyb 1711 Feb 15, 2005, 6:55 AM
Thread Re: [vercyb] calculus on fields when inserting links
afinlr 1611 Feb 16, 2005, 7:50 AM
Post Re: [afinlr] calculus on fields when inserting links
vercyb 1593 Feb 17, 2005, 7:36 AM