1
vote
Accepted
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
Related Tags
ajax × 2505forms × 995
7 × 832
8 × 454
javascript × 390
views × 340
entities × 185
nodes × 104
theming × 84
commerce × 74
webforms × 72
users × 57
taxonomy-terms × 57
files × 56
6 × 47
chaos-tool-suite × 43
hooks × 42
blocks × 41
9 × 41
routes × 40
search × 35
paging × 35
database × 25
modal-dialogs × 25
media × 23