I wrote a script for a Google Sheet that emails a user some specific info relevant to them alone. It works fine with the onOpen trigger, but I don't want them to have to open the sheet each time.
It would be easier to submit a form request and then receive the email but I'm not sure how to do that. I'm sure this is very basic so apologies for that, I'm new to this.
Basically I would like to form to ask if they want to receive an email with the info, and if they say yes, it triggers the script.
onFormSubmit(), so that if the "want an email?" box is marked, the user who submitted the form gets the email. One detail, you would need to ask the user to enter their email address in the form, there's no way to retrieve it just from the responses.