Hot answers tagged

1 vote

Problem with Adding new fields with Ajax call to a custom form

You cannot add form elements in ajax callbacks. Drupal caches the form before the callback, so if you add elements in the callback, they are not part of the cache, and any values submitted by those ...
  • 16.1k

Only top scored, non community-wiki answers of a minimum length are eligible