Skip to content

Instantly share code, notes, and snippets.

@mcnaveen
Last active May 28, 2022 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcnaveen/3e693b8026156981099b5297e7a03d53 to your computer and use it in GitHub Desktop.
Save mcnaveen/3e693b8026156981099b5297e7a03d53 to your computer and use it in GitHub Desktop.
Autofill popup fields - personalizery
<script type="text/javascript">
function personalizeryInit() {
let params = new URL(document.location).searchParams;
let name = params.get("firstname");
let email = params.get("email");
document.querySelector("#form-field-field_8fd15b6").value = name;
document.querySelector("#form-field-email").value = email;
}
personalizeryInit();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment