This topic is locked

Problem in converting to a proper php expression

5/24/2007 11:33:04 AM
PHPRunner General questions
Z
zebex author




See screenshot above.
I have a field named UNIT, in visual editor this is set as readonly.

Now the default value of this field is a calculation between two fields,

field2 and field1. Im having trouble translating it into proper php code.
Pls guide me on this one.
Note: All fields belong to the same table.
tnks,

tata

Sergey Kornilov admin 5/24/2007

Default value is applied on the add page only when record is not created yet.

This means you cannot refer to other field values.
I think you need to use Events for this purpose.