I started to create a new content type with modules Field Group and Field Collection and it’s worked !
But, I would like to add autocomplete fields in my form and I don’t find how to do this. Maybe using a hook_form_alter however I can’t add my custom fields in my field collection.
You know how to do this ?
Thanks a lot
PS: I work with D7
To add an auto_complete to a from field, you need to do the following:
1st: use hook_for_alter() to add the auto_complete path to the text field
2nd: use hook_menu() to define the menu callback you passed as the #autocomplete_path property to the field
3rd and last: add you menu callback function which returns the items to the textfield
Hope this helps… Muhammad.