Unexpacted Token in SendGrid Code

Yep. That did the trick… The email looks good now.

Unfortunately the other 2 checkboxes (under message) are not registering in the email notification.
I tried to imitate the Interests code, but it’s not working and now I am also getting errors - “Body unread” and at the bottom “Body undefined”. Probably some basic rules I am not familiar with yet…
See how I added the following the same way Interest is written?
\n${newsletter}
\n${confidentielles}

Another thing I trying to do is add a space between the predefined title line and the name that is embedded within “Vous avez reçu un formulaire deTest Test” - need space after “de”.

Sorry to bother you so much. One thing for sure, I will have a good solid form-code to use in the future :slight_smile:

	let newsletter = `\rRecevoir Newsletter: `;
 	
	if ($w("#NewsletterCheckbox").checked) {
		newsletter = newsletter + "Oui";
	}  

 	let confidentielles = `\rDonnées Confidentielles: `;
	if ($w("#ConfidentielleCheckbox").checked) {
		confidentielles = confidentielles + "Oui";
		
	const body = `
    	\nNom: ${$w("#Nom").value}
    	\nPrénom: ${$w("#Prenom").value}
    	\nTéléphone: ${$w("#Telephone").value}
    	\nEmail: ${$w("#Email").value}
    	\nMessage: ${$w("#Message").value}
    	\n${intrests}
    	\n${newsletter}
    	\n${confidentielles}`;
		
	}