- Go to Drive
- Click on New
- Select Form
- Create the form as needed.
- Go to responses Srpreadsheets.
- Go to tools -> script editor
- Create the following function:
function onFormSubmit(e) { try{ var email = "[email protected]"; //check the email according the Trello board
//value 0 is response timestamp
var response-first-field = e.values[1];
var response-n-field = e.value[n];
var subject = "Trello card title" + response-first-field;
var body = "Trello card description : \n" + response-n-field;
MailApp.sendEmail(email, subject, body);
}catch(e){ Logger.log(e.toString()); } }
Here are the instructions to get the email to create cards in a specific Trello board and the formatting tips http://help.trello.com/article/809-creating-cards-by-email
- Go to Edit -> Current project's triggers
- Set the following fields:
Run: the function
Events: From spreadsheet on form submit