# \[Solved\] Coded Templates: Forms Broken

**URL:** <https://community.hubspot.com/t/solved-coded-templates-forms-broken/12045>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [February 6, 2018, 4:25pm UTC](https://community.hubspot.com/t/solved-coded-templates-forms-broken/12045 "2018-02-06T16:25:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucabartoli](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lucabartoli/32/44643_2.png) [@lucabartoli](https://community.hubspot.com/u/lucabartoli)\
**Post date:** [February 6, 2018, 4:25pm UTC](https://community.hubspot.com/t/solved-coded-templates-forms-broken/12045/1 "2018-02-06T16:25:58Z")

</div>

On coded templates, all the footer scripts are injected twice, once in standard\_header\_includes (wrong!!), once in standard\_footer\_includes (ok).

This cause a duplication of forms.js that corrupts some functionalities of form validation, especially if some checkboxes are used (validation and submitting stop working).

Edit:  
We found a double inclusion of the base html, one in extends and another one in an include tag.

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [February 7, 2018, 8:08pm UTC](https://community.hubspot.com/t/solved-coded-templates-forms-broken/12045/2 "2018-02-07T20:08:54Z")

</div>

Adding this in order to be able to mark as solved:

![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/8/a8b04a9d368de400c0de6f48dc371a1b871e5b7f.png) LucaBartoli:

> We found a double inclusion of the base html, one in extends and another one in an include tag.
