Skip to main content
All CollectionsEmails, Forms, & Documents
Fixing Lawmatics Form Not Showing in Safari, Firefox, and Mobile
Fixing Lawmatics Form Not Showing in Safari, Firefox, and Mobile
Updated over 2 weeks ago

Overview

If your Lawmatics embedded form is not appearing in Safari, Firefox, or on mobile devices, and you are seeing an error like:

Uncaught TypeError: this.body is null

this guide will walk you through the issue and how to fix it.

Why Is the Lawmatics Form Not Appearing?

The issue occurs because Lawmatics' script ( intake.min.js) tries to insert the form into the page before document.body is fully loaded. Some browsers, especially Safari and Firefox, enforce stricter execution rules, which results in the script failing with a this.body is null error.

Key Reasons for the Issue:

Script Execution Order Issue – The script is trying to modify the page before it’s fully loaded.Cross-Origin-Like Restrictions – Some browsers treat dynamically injected scripts as if they were coming from a separate origin.Lazy Execution on Mobile – Some mobile browsers defer script execution, leading to form rendering failures.

How to Fix the Issue

✅ Modify Your Existing Embed Code

To ensure the form loads properly, you only need to make two small edits to your existing Lawmatics embed snippet:

Edits You Need to Make:

  1. Add a <div> to specify where the form should load:

<div id="lm-embedded-container"></div>

  • This ensures the form is injected in the correct place on the page.

2. Modify the lm_intake function to reference the new container:

lm_intake("YOUR_EXISTING_FORM_ID", "lm-embedded-container", {});
  • This change tells Lawmatics where to insert the form instead of letting it decide automatically.


Why This Fix Works

Problem

Original Embed Code

Fixed Embed Code

this.body was null

❌ The script executed before document.body was ready.

✅ The form is injected into an existing <div> after the page loads.

Cross-Origin Issues

❌ Some browsers blocked dynamically injected elements.

The form is placed within the existing page structure.

Browser Security & Timing

❌ Safari & Firefox blocked execution due to premature script loading.

Runs properly across all browsers, including mobile.

Final Thoughts

If your Lawmatics form is not displaying in Safari, Firefox, or on mobile devices, the issue is likely due to script execution timing and browser security restrictions. The best solution is to modify your existing embed snippet by adding a container <div> and updating the lm_intake function as shown above.


🚀 Still Need Help? Contact Lawmatics Support to verify that your form settings are correct and that embedding is supported on your website.





Did this answer your question?