CCK select widget with CCK Content Taxonomy

ppmax - April 11, 2009 - 02:23
Project:Validation API
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi--
First up: love this module! Thanks for the contribution.

I have two Content Taxonomy fields within a form. Each Content Taxonomy field displays a select list generated by a list of taxonomy terms. E.G:
field_good is a drop-down with values Yes and No (referenced from a vocabulary containing these terms)
field_how_good is a drop-down with 4 values (referenced from a vocabulary containing these terms)

As has been addressed before I need to validate input based upon another field. In my case:

if ($form_state['values']['field_good'] == 'Yes') {
   return ($value != '');
}
return TRUE;

For the life of me this code isnt working. It's like the value in $form_state['values']['field_good'] isnt even there. With the web developer module in firefox with I can "view form information" to inspect the values of each form field; field_good reports no value.

Any ideas? Im hoping this isnt one of those "#after_build" scenarios ;P

thanks much and kind regards,
pp

#1

ppmax - April 15, 2009 - 18:19

Hi again--just checking back to see if anyone can shed some light on the behavior I'm seeing above. Any clues/tips/workarounds?

thx much
pp

 
 

Drupal is a registered trademark of Dries Buytaert.