Honestly, I cannot say why the code is not being added. I cannot reproduce the problem on my end. if it where a problem with the template, the page would be mising more than the single function, so i dont believe it is a problem with the template.
perhaps try uninstalling form builder than installing again and deleting the dreamweaver cache file:
common_installation_issues.pdf