For those in same boat who need the logged-in user’s email on a variety of pages for form submissions, here’s a simple approach with localStorage:
on Log In page before </body>
tag:
<script>
$('form').submit(function(){
localStorage.user_email = $('#wf-log-in-email').val();
});
</script>
on page where need logged in user’s email:
$('#user-email').val(localStorage.user_email)
There may be a low % edge case if user changes their email without logging out/in.
Can use the Sygnal Attributes library to accomplish this as well.
You can also pull an iframe or ajax the /user-account page to get other logged in user attributes on any page, but Sygnal can do that for you too.