1
vote
When a custom form is displayed in a custom template, ajax does not work
The only variable available in a #theme form template is
{{ form }}
and this is the only thing you need to render. If you render single form elements or groups then include the rest of the form ...
- 93.7k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
forms × 67707 × 2096
8 × 1393
ajax × 997
theming × 536
users × 402
nodes × 393
webforms × 302
javascript × 283
hooks × 282
views × 239
entities × 229
files × 206
6 × 194
blocks × 141
9 × 122
commerce × 116
emails × 95
database × 90
routes × 90
taxonomy-terms × 89
redirection × 89
media × 88
comments × 73
datetime × 69