У меня есть лист Google с скриптом приложений, который: < /p>
- Создает новые листы запросов при отправке формы < /li>
Добавляет флажок для каждого листа запросов < /li>
ablet in the obsted in the obsted in the obsted in the obsted in the obsted in the obsted in the obsted in the obsted in the obsted in the settemplose liet /> Отправить электронные письма с подтверждением < /li>
Отметьте запрос как отправленное < /li>
< /ul>
< /li>
< /ol>
Это отлично работает в исходном листе, но после создания копии:
triggers не работает
no ablement
. Появление. />Checked execution logs - shows trigger fires but no visible changes - Tested email sending separately - works when run manually
Main trigger handler:
javascript
function handleCheckboxSubmit(e) {
if (!e || !e.value || e.value !== "TRUE") return;
const sheet = e.range.getSheet();
const range = e.range;
const row = range.getRow();
// Verify this is our submit checkbox
if (range.getColumn() !== 2 ||
sheet.getRange(row, 1).getValue() !== "Submit Request") {
return;
}
// ... rest of the function
}
function submitRequest() {
// ... gets all required data
try {
MailApp.sendEmail({
to: ${requestorEmail}, ${designerEmail}, ${groupEmail},
name: senderName,
subject: subject,
htmlBody: body
});
} catch (e) {
console.error("Email failed:", e);
}
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... g-and-stat