I'm trying to set up a rule which sets a CCK field to the greater of two other CCK fields, but calculate a value only has +-*. How do I figure out the greater of two values?

link|improve this question

65% accept rate
feedback

1 Answer

up vote 0 down vote accepted

I guess that you can try this to the 'numeric comparison' rule:

enter image description here

here is the lines used with cck fields field_test1 and field_test2:

 <?php $field1 = $form_state['values']['field_test1'][0]['value']; echo $field1; ?>
 <?php $field1 = $form_state['values']['field_test2'][0]['value']; echo $field2; ?>
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.