Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix enterprise plan CRM form prefill for case with literal input (#4235)

Adrian Gruntkowski71758634921a
diff --git a/lib/plausible/crm_extensions.ex b/lib/plausible/crm_extensions.ex
index 4bc23f341d..96d3427e9e 100644
--- a/lib/plausible/crm_extensions.ex
+++ b/lib/plausible/crm_extensions.ex
@@ -49,7 +49,7 @@ defmodule Plausible.CrmExtensions do
Phoenix.HTML.raw("""
<script type="text/javascript">
(async () => {
- const userIdField = document.getElementById("enterprise_plan_user_id")
+ const userIdField = document.getElementById("enterprise_plan_user_id") || document.getElementById("user_id")
let planRequest
let lastValue = Number(userIdField.value)
let scheduledCheck