XRHealth Marketing Forms Forms menu

Embed Installation

Marketing forms can be opened as standalone pages, embedded with JavaScript, or embedded with iframes.

Use the official public domain for new installs:

https://mkt.xr.health

The root path / is a form menu. Do not use it as an iframe source for a specific form.

Which Embed Should I Use?

Use iframe embeds for WordPress, Bricks, HubSpot embeds, CMS pages, landing-page builders, or any page where host CSS and optimization plugins are not fully controlled. Iframes isolate the form from the parent page, which prevents theme styles, Tailwind resets, cached CSS, and script optimization plugins from changing the widget layout.

Use script embeds only when the host page is controlled and inline DOM rendering is required. Script embeds render directly into the parent page, so host CSS can affect the form if the page has broad selectors or high-specificity rules.

Standalone Pages

FormURL
Medicare Eligibility Checkhttps://mkt.xr.health/medicare-eligibility.html
Medicare DME Long Formhttps://mkt.xr.health/dme-long-form.html

Iframe Embeds

Use iframe embeds for CMS pages, landing-page builders, or host pages where isolating the form is simpler. This is the recommended embed method for WordPress and Bricks landing pages.

Medicare Eligibility Check

By default, eligible results show a green Get Started button that opens https://www.xr.health/us/services/lp-chronic-pain-w-b2/.

<iframe
  src="https://mkt.xr.health/medicare-eligibility.html"
  title="XRHealth Medicare Eligibility Check"
  style="width: 100%; min-height: 720px; border: 0; display: block;"
></iframe>

To make the eligible Get Started button open a different HTTPS URL, pass an encoded xr_redirect URL:

<iframe
  src="https://mkt.xr.health/medicare-eligibility.html?xr_redirect=https%3A%2F%2Fwww.xr.health%2Fus%2Fservices%2Flp-chronic-pain-w-b2%2F"
  title="XRHealth Medicare Eligibility Check"
  style="width: 100%; min-height: 720px; border: 0; display: block;"
></iframe>

To disable the eligible redirect and use the phone CTA fallback instead, pass xr_redirect=none:

<iframe
  src="https://mkt.xr.health/medicare-eligibility.html?xr_redirect=none"
  title="XRHealth Medicare Eligibility Check"
  style="width: 100%; min-height: 720px; border: 0; display: block;"
></iframe>

Medicare DME Long Form

<iframe
  src="https://mkt.xr.health/dme-long-form.html"
  title="XRHealth Medicare DME Long Form"
  style="width: 100%; min-height: 1100px; border: 0; display: block;"
></iframe>

Script Embeds

Use script embeds when the host page allows third-party JavaScript and should render the form inline.

Medicare Eligibility Check

By default, eligible results show a green Get Started button that opens https://www.xr.health/us/services/lp-chronic-pain-w-b2/.

<div id="xr-medicare-widget"></div>
<script src="https://mkt.xr.health/widget/medicare-check.js"></script>

To make the eligible Get Started button open a different HTTPS URL, set data-redirect on the script tag:

<div id="xr-medicare-widget"></div>
<script
  src="https://mkt.xr.health/widget/medicare-check.js"
  data-redirect="https://www.xr.health/us/services/lp-chronic-pain-w-b2/"
></script>

To disable the eligible redirect and use the phone CTA fallback instead, set data-redirect="none":

<div id="xr-medicare-widget"></div>
<script
  src="https://mkt.xr.health/widget/medicare-check.js"
  data-redirect="none"
></script>

Medicare DME Long Form

<div id="xr-dme-long-form-widget"></div>
<script src="https://mkt.xr.health/widget/dme-long-form.js"></script>

Implementation Notes

  • Keep iframe width at 100% so forms work on mobile and desktop.
  • Start with min-height: 720px for Medicare Eligibility Check and min-height: 1100px for Medicare DME Long Form.
  • Avoid restrictive sandbox attributes unless the final host page has been tested; the forms need to submit requests to their own APIs.
  • For WordPress and WP Rocket pages, do not copy widget JavaScript into local cache paths such as /wp-content/cache/min/1/widget/.... Use https://mkt.xr.health iframe URLs or the canonical script URL directly.
  • If a script embed must be used on WordPress, exclude https://mkt.xr.health/widget/medicare-check.js from aggressive minify, defer, and lazy-load rules when those optimizations affect rendering or updates.
  • The old Vercel deployment URL may continue to work for compatibility, but new installs should use https://mkt.xr.health.