retrieving values from a fieldset
I'm still new to Drupal so this might be a really obvious thing to you all, but it's eluding me so far!
I'm creating a form that has a fieldset like this:
My question is how to access the value of ['myfieldset']['item1'] once the form is submitted. In my form_submit function, if I try and access the value through
$form_state['values']['item1']
I get an error saying that it doesn't exist. If I try and access it through $form_state['values']['myfieldset']['item1']
it's returned as an array. How do I get access to the value?
It turns out that the field I'm trying to access is a date field and they're returned as an array of year/month/day.
$form_state['values']['item1'] should work. can you post the full code?
Did you clear the cache?