J
|
Jane 11/23/2006 |
Graeme, function BeforeAdd(&$values) { $values["tfall"] = $values["tf1"].$values["tf2"].$values["tf3"]; return true; } |
G
|
gdude66 author 11/23/2006 |
Graeme, you can do it using events. Here is a sample code for the Before record added event:
|
D
|
Dale 11/23/2006 |
Im always a bit leary in giving a quick reply, hopefully I'm right with this one. Im no expert but give this a try. |
G
|
gdude66 author 11/24/2006 |
Im always a bit leary in giving a quick reply, hopefully I'm right with this one. Im no expert but give this a try. function BeforeAdd(&$values) { $values["tfall"] = $values["tf1"]."" "".$values["tf2"]."" "".$values["tf3"]; return true; } Hopefully that will add the spaces in between. One side effect here. If $values["tf2"] is empty you may end up with 2 spaces in between the other fields.
|