Is it possible to get a javascript callback when an embedded form is submitted?

  • Profile Image
    Jan Misker
    Asked on February 23, 2013 at 11:00 PM

    I want to show a form on my page, embedded as an iframe (I don't want a lightbox but embed it differently).

    Is it possible to get a javascript callback, e.g. via postMessage event, when the form is submitted? That way I can hide / destroy the iframe after submission.

  • Profile Image
    Answered on February 24, 2013 at 01:28 AM

    Hi Jan,

    That's possible using your form source code and inject the scripts there to get the function you need. After that, save the form source code as HTML, upload it to your website and embed it as iframe. Example:

    <iframe allowtransparency="true" src="" frameborder="0" style="width:100%; height:465px; border:none;" scrolling="no"></iframe>

    Let us know if you have further questions. Thanks!