Hi, Thanks to everyone, I’ve get my filtered dataset and managed to display that and send to customers. While, I ran into another problem that the array result shown in the email look like this
How can i
- Make a new line for each product,starting from product no.
- Change the fonts
Here’s my code
function SendEmail(event)
{
const subject = Submission from ${$w("#Name").value}
;
const body = Dear ${$w("#Name").value}, Here are your Details Here is your Rental Product Detail \n
+ PdInfo; //PdInfo[i]= “Product No. " + i +” Product Name is "+ PdName[i] + " Quantities
//is " + PdQuantities[i] + " Rental Duration is “+ PdDuration +” Rental start
//date is "+PdStartDate;
const recipient = $w(“#Email”).value;
sendAdminEmail(subject,body).then(response => console.log(response));
sendUserEmail(subject,body,recipient).then(response => console.log(response));
}