height
500px
config
[{"tag":"script","attributes":{},"children":[],"content":"\n\n window.addEventListener(\"message\", function (event) {\n\n if (!event.data) return;\n\n const parentUrl = parent.window.location.href;\n\n const urlParams = new URLSearchParams(parent.window.location.search);\n\n const campaignid = urlParams.get(\"campaignid\");\n\n if (event.data.type === \"requestParentUrl\") {\n\n console.log(\"[Parent] Sending parent URL and campaignid:\", parentUrl, campaignid);\n\n event.source.postMessage(\n\n {\n\n type: \"sendParentUrl\",\n\n url: parentUrl,\n\n campaignid: campaignid\n\n },\n\n event.origin || \"*\"\n\n );\n\n }\n\n if (event.data.type === \"requestAdobeUtm\") {\n\n try {\n\n const utm = window.sessionStorage.getItem(\"formAttribution\");\n\n console.log(\"[Parent] Sending Adobe UTM from sessionStorage:\", utm);\n\n event.source.postMessage(\n\n {\n\n type: \"sendAdobeUtm\",\n\n adobeUtm: utm\n\n },\n\n event.origin || \"*\"\n\n );\n\n } catch (err) {\n\n console.error(\"[Parent] Error accessing sessionStorage:\", err);\n\n }\n\n }\n\n if (event.data.type === \"resizeIframe\") {\n const iframe = document.querySelector(\"iframe[title='lead-form']\");\n if (iframe) {\n iframe.style.height = \"600px\"; // Or any value that fits your thank-you message\n console.log(\"[Parent] resizeIframe received – setting height to 600px\");\n }\n }\n if (event.data.type === \"formHeight\") {\n const iframe = document.querySelector(\"iframe[title='lead-form']\");\n if (iframe) {\n iframe.style.height = event.data.height + \"px\";\n }\n }\n\n });\n"},{"tag":"iframe","attributes":{"src":"https://assets-oce.mkt.dynamics.com/85c14600-5ae6-4cdb-a913-b89b32d43444/digitalassets/standaloneforms/c5e3d071-411b-f011-998a-000d3ae042a9#d365mkt-nocache","scrolling":"no","width":"100%","frameborder":"0","title":"lead-form","height":"600px"},"children":[]}]