Get MS id in an Airtable form

I have an Airtable form as an embed on my Webflow site, only accessible to members.

When the form is submitted, I want to also submit the MS email.

I believe this can be achieved through pre-filling the form (see Airtable help), but am not sure:

a) if it is possible to submit the form without showing the user their prefilled email
b) how to achieve this. I’ve checked out @Marc-Antoine’s answer here but am still struggling with this.

This is what I have so far

<script>
   MemberStack.onReady.then(function(member) { 
var name = member["first-name"];
var email = member["email"]; 

console.log(name + " " + email); 


var src = "https://airtable.com/embed/shrk1mjQTsTC1zYnM?prefill_email=" + email; 

document.getElementById("airtable-embed").src = src;
})
</script>
<iframe class="airtable-embed" src="https://airtable.com/embed/shrk1mjQTsTC1zYnM?backgroundColor=blue" frameborder="0" onmousewheel="" width="100%" height="533" style="background: transparent"></iframe>

Hey Alastair :wave:

I think you are on the right track! Try adding an id to your Iframe. like

id="airtable-embed"

If this doesn’t work let me know and I can dive deeper. :grinning: