Last active
May 28, 2022 16:59
-
-
Save mcnaveen/3e693b8026156981099b5297e7a03d53 to your computer and use it in GitHub Desktop.
Autofill popup fields - personalizery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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