Error on submit when utilizing onFormReady


I tried asking about this in another thread, but I didn’t get an answer so I’m hoping for some more visibility.

My current integration looks like this.

    portalId: '[Proper portalId]',
    formId: '[Proper formId]',
    onFormReady($form, ctx){

The onFormReady portion is just for placing the form in the correct place on the page. Otherwise, the form will appear on the bottom of my page, which is not desirable.

This displays the form perfectly. However, when I try to submit the form, I get the following error.

Uncaught Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.
at r (
at Object.findComponentRoot (
at Object.findReactNodeByID (
at Object.l [as getNode] (
at Object.s [as executeDispatch] (
at executeDispatch (
at a (
at Object.l [as executeDispatchesInOrder] (
at c (
at Array.forEach (native)

This, unfortunately, is not telling me very much. Any idea what might be causing this error, or at least what could help me debug it further?

Interestingly, if I remove the onFormReady part and submit the form at the default position, the form submits without error, as expected.


Hi @thalandor46

You can use the target attribute of the embed code for this. The target attribute takes a jQuery-style selector, and the form will automatically be inserted into the specified element after being built.