All posts

How to setup Google Form on blogger

How to setup Google Form on blogger

Instructions for setting up orders appear on google spreadsheets and email notifications immediately. This trick is very simple, watch the video..



Code
function guiBieuMau(e) 


{


  // Replace with your email address


  var email = "diachimail@gmail.com";


  // Subject of email sent to


  var subject = "Order at ABCD shop";


  // If you're not familiar, don't touch the code below


  var s = SpreadsheetApp.getActiveSheet();


  var columns = s.getRange(1,1,1,s.getLastColumn()).getValues()[0];


  var message = "";


  for ( var keys in columns ) {


    var key = columns[keys];


    if ( e.namedValues[key] && (e.namedValues[key] != "") ) {




      message += key + ' :: '+ e.namedValues[key] + "\n\n";


    }


  }


  MailApp.sendEmail(email, subject, message);


Post a Comment

Ready when you are

Have a project in mind?

Tell me what you need. I'll reply within 24 hours with questions, ideas and a clear quote.

Start a project