height
auto
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 eventid = urlParams.get(\"eventid\");\n \n if (event.data.type === \"requestParentUrl\") {\n \n console.log(\"[Parent] Sending parent URL and eventid:\", parentUrl, eventid);\n \n event.source.postMessage(\n \n {\n \n type: \"sendParentUrl\",\n \n url: parentUrl,\n \n eventid: eventid\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/d45cf463-003e-401c-91a7-8a7c04ae4c47/digitalassets/standaloneforms/0dd336fd-3336-f011-8c4c-002248971dfc#d365mkt-nocache","scrolling":"no","width":"100%","frameborder":"0","title":"lead-form","height":"600px"},"children":[]}]