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

jaxta’s picture

Hey, I could really do with some help on EXACTLY the same problem!

Can anyone help?

Many thanks

jaxta’s picture

Fixed!

I just put the code :

if ($node_field[0]['value'] == '') {
example in here ;
}

....in computed code field settings.

mattyb’s picture

Status: Active » Closed (fixed)

if ($node_field[0]['value'] == '') {$node_field[0]['value'] = "hello" ; }

Cool cheers jaxta