Posted by srinikasturi on March 26, 2010 at 11:20am
Hi,
Just started with this awesome module!
I am trying to create a rule where 'form element fieldname value check' needs to look at the field, and do something only if it is a null value. Entering 'null' in the value text area does not do the job. Leaving it blank is not possible as it is a mandatory field. How do I do this with rules, without hacking the other module that is creating the form?
Thanks
Srini
P.S.
I tried putting the condition (with negate)
<?php
return array( 0 => array('value' => NULL));
?>Thanks
Comments
Change 'value' to something else
I think you need to change the array key ('value') to something else. For node references, it should be 'nid'.
If you got Devel installed, try the Devel tab and see what the array keys look like.
Good luck!
//Johan Falk, NodeOne, Sweden
Thank you. I'll try that and
Thank you. I'll try that and update the thread.
try <?php print NULL; ?>
try
<?php print NULL; ?>