HTML form in code or text field

I’m trying to insert an HTML form like this one:

<form name="form" method="post" action="">
  <input name="company" type="text" id="company" />
  <input name="name" type="text" id="name" />
  <input name="company-number" type="hidden" id="company-number" value="" />
  <input type="submit" id="submit" value="Send" />
</form>

into a ContentBlocks field. I’ve tried using both a “Code” and “Text Area” field type but unless the output in the template is wrapped in tags I cannot save the resource. When trying to save it goes into the endless saving loop and throws the following error in Chrome’s console:

ext-all.js:21 Uncaught TypeError: m.submit is not a function
    at Ext.data.Connection.doFormUpload (ext-all.js:21)
    at Ext.data.Connection.request (ext-all.js:21)
    at Ext.form.Action.Submit.run (ext-all.js:21)
    at ext-base.js:21

I can save the resource initially (with or without the tags in the template) but only when creating it, and when I try to make edits and save again it goes into the endless saving loop.

Luc, if possible, I’d like to take a look at this for you directly. Could you email support@modmore.com with a login to your manager?