Closed (fixed)
Project:
Computed Field
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
11 Mar 2008 at 00:21 UTC
Updated:
11 Mar 2008 at 09:35 UTC
Hi, could you tell me what code I'd need to wrap around my current compute code so that it only actioned whe a record was inserted and not afterwards for updates.
example code
$node_field[0]['value'] = "hello" ;
Many Thanks
Comments
Comment #1
jaxta commentedHey, I could really do with some help on EXACTLY the same problem!
Can anyone help?
Many thanks
Comment #2
jaxta commentedFixed!
I just put the code :
if ($node_field[0]['value'] == '') {
example in here ;
}
....in computed code field settings.
Comment #3
mattybif ($node_field[0]['value'] == '') {$node_field[0]['value'] = "hello" ; }
Cool cheers jaxta