Hi there

I hope somebody can help me and I hope I can explain this well.. .:o)

I face the problem that I can't access certain fields of my form by hook_form_alter. This is the case when content field types are used which have actually more than 1 field. Like this is the case with the link.module or with my own content field types modules.

So normally you can do (eg. for autocomplete):
$form['field_textfield'][0]['#autocomplete_path']=.....

If you do this with links (or other multi field fields):
$form['field_link'][0]['#autocomplete_path']=.....
Then you have a problem:
The actual textfield elements are attached to [0] LATER. At the point where hook_form_alter is called there is nothing yet.

So you can't access those fields!

Anybody has any suggestion? Help?
I'm still new to Drupal and am hitting my head against the wall since some days now :(