Issue with HTML Form when inserting into a Twig template
-
Though the title above is true, I am not completely certain the form issue is due to being used in a twig template (timber).
I have added a content variable and then inserted into the twig template for rendering.
timber.php:
$context['contact_form_html'] = do_shortcode($content_post[0]->custom['contact_form']);
footer.twig:
{{ contact_form_html}}
The form renders fine BUT there’s no submission or even capture. The page reloads (ie. no ajax) and nothing gets tracked, not is js triggered anywhere. No submissions are saved in the db as well. I think the plugin’s js files are not getting loaded here but not sure.
Please do advise!
Thanks!
- The topic ‘Issue with HTML Form when inserting into a Twig template’ is closed to new replies.