Is it possible to apply FAPI #states to profile2 fields on the user registration form? I have a profile embedded into the user registration form and am trying to add a conditional to one of the fields in order to show/hide related fields.

The fields are all part of the same fieldgroup in the following layout:

username
email

profile (fieldset)
 - About you (fieldset)
  - fields

submit button


I think the issue is how to actually target the fields and apply #states to them.  Any ideas? I tried digging through Devel Themer, but couldn't get anywhere with it.
If you want to alter a form, you need to create a custom module and implement hook_form_alter (or hook_form_FORM_ID_alter) in it. In your hook_form_alter implementation you will have the $form array available. Look up the element you're interested in and add a #states property to it.

The above is just theory; I have not tried it specifically with the profile2 form and a #states property, but I assume that it would work.