Would it be possible to pull this embed markup through the API?

  • Profile Image
    laurienne.thesen
    Asked on March 12, 2021 at 08:24 PM

    Would it be possible to pull this embed markup through the API? That would help our users during setup a lot, and would enable us to automatically embed these forms for them without this needed step for our not so savvy users.



    This is a re-post of a comment on Getting the Form iFrame Code

  • Profile Image
    Ariel_P
    Answered on March 13, 2021 at 10:26 AM

    Unfortunately, no, but you could perhaps build the markup from your script.

    Copy the latest markup and replace the form ID. Form ID is the number you see on a form URL: https://form.jotform.com.com/30693660548966.

    <iframe
        id="JotFormIFrame-{formID}"
        title="Form"
        onload="window.parent.scrollTo(0,0)"
        allowtransparency="true"
        allowfullscreen="true"
        allow="geolocation; microphone; camera"
        src="https://form.jotform.com/{formID}"
        frameborder="0"
        style="
        min-width: 100%;
        height:539px;
        border:none;"
        scrolling="no"
    >
    </iframe>
    <script type="text/javascript">
        var ifr = document.getElementById("JotFormIFrame-{formID}");
        if (ifr) {
        ...

    Hope that helps. Let us know if you have any questions or if you need further assistance.