I was trying to send an approval letter with google apps script (mailApp). And hide some data in the hidden input. However, the id of the input was changed by google.
The script in google apps script:
MailApp.sendEmail({
to: email,
subject: "Classroom register Approval",
body: "",
htmlBody:
"<form action = 'google apps script website' method = 'POST'>" +
"<input id='approverow' type='hidden' value="+ e.range.getRowIndex() +">" +
"<button type = \"submit\">Approve</button>"
})
real HTML in email
<form action="google apps script website" method="POST" target="_blank">
<input id="m_8985313804230818410approverow" type="hidden" value="22">
<button type="submit">Approve</button></form>
Why Google change the element id and how can I stop it?