Okay so a few notes of things I’ve uncovered:
wp_kses_post()
removes some elements from the rendered form
- jQuery being undefined could be because you have an enhanced select field, and jQuery is being enqueued in the footer
- I have a script that defers the loading of jQuery, so even though jQuery is loaded in the header, the form scripts run before jQuery is available