Closed (works as designed)
Project:
Drupal core
Version:
6.2
Component:
forms system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2011 at 12:17 UTC
Updated:
16 Jan 2014 at 09:07 UTC
Jump to comment: Most recent
Comments
Comment #1
hasozduru commentedComment #2
hallg9999 commentedHaving the same problem in Drupal 7
Comment #3
mduponthook_form_alter() is not called for form elements refreshed via ajax, which is what the "Add another item" button does. You need to use another hook, preferably one attached to the field widget itself (check the CCK API for D6, in D7 it would be hook_field_widget_form_alter()).
Closing old issue.