Hey everyone, on our site we store the email from the first form submitted in our sign up process, i’m trying to pull that email and input it into a field on a form later on in the sign up process.
The email is being stored just fine, i’m having issues using it though. This is what i’m trying to use:
<script>
document.forms['wf-form-username-password'].elements['email'].value =
window.localStorage.getItem("email");
</script>
When I test this though, “undefined” shows up in the field.
I haven’t learned Javascript, just managed to piece the script above together by searching online.