I’m also having a problem with the form fields included in the email. I’m using exactly the sendemail code in the article; everything works, except only the first entry passes into the email. There’s no error shown in the Editor.
function sendFormData() {
const subject = Type Your Subject Here ${$w("#demolicemail").value};
const body = Type Here: ${$w("#demolicemail").value} \rLabelHere2: ${$w("#site").value}; \rLabelHere: ${$w("#mid").value};
const recipient = $w(“#demolicemail”).
This is from the article.
‘site’ value passes to email; ‘mid’ doesn’t. It’s not the form; if I swap ‘site’ and ‘mid’ - so mid’s first - ‘mid’ passes. Only \rLabelHere2: shows in the email. \rLabelHere: doesn’t.
So it looks like the first body line and the first label line is in the email, nothing after that.
Any suggestions appreciated.
Thanks,
David