I would like to hire a Javascript Developer

We are a small professional football club who are sending reports to some young players through a google form. We have a script and associated files previously developed, but are having problems with a line of code, and would really appreciate some understanding of where we're going wrong and some assistance in sorting it.

Here's the code:

function sendEmail(row) {

var docTemplate = "1dtjuvjAatZyLyejjU4J113p_eC38eD8yrr4vCjTxNxY";

var docName = "RegionalDevelopmentCentreEndOfSeasonReport";

var FIRST_NAME = 1;



var INDEX = 0;

var KEY = 1;

// This list matches a particular placeholder in the Google Doc with

// the column that placeholder's value appears in in the spreadsheet,

// where Col A = 0, Col B = 1, etc..

var formKeys = [[1,"keyPlayerFirstName"],














var splitFields = ["keyDestroyer1",



var source = [login to view URL](docTemplate);

var newFile = [login to view URL]("Mid-Season Review");

var copyId = [login to view URL]();

var copyDoc = [login to view URL](copyId);

var copyBody = [login to view URL]();

for(var i=0; i<[login to view URL]; i++) {

isSplitField = false;

for(var j=0; j<[login to view URL]; j++) {

if(formKeys[i][KEY] == splitFields[j]) {

isSplitField = true;

key = formKeys[i][KEY];

values = row[formKeys[i][INDEX]].split(', ');

[login to view URL]([login to view URL]("A"), values[0]);

[login to view URL]([login to view URL]("B"), values[1]);




if(!isSplitField) {

[login to view URL](formKeys[i][KEY], row[formKeys[i][INDEX]]);



[login to view URL]();

var pdf = [login to view URL](copyId).getAs("application/pdf");

var subject = "RDC End Of Season Report 2016/17";

var body = "Dear " + row[FIRST_NAME] + ",_LB_";

body += "_LB_Congratulations on being offered a place within the Regional Development Centre Programme for next season. You should be immensely proud of your achievement._LB_";

body += "_LB_Please find attached your report, which has been completed by your Regional Development Centre coaches._LB_";

body += "_LB_Use this report to focus your efforts during the off season, and push yourself to develop and improve your performance ahead of the 2017/18 campaign._LB_";

body += "_LB_Well done! Keep up the good work._LB_";

body += "_LB_Kind Regards,_LB_";

body += "_LB_Jonny Martin_LB_";

body += "Football Development Manager_LB_";

body += "Cambs Glass Stadium | Newmarket Road | Cambridge | CB5 8LN_LB_";

body += "T 01223 566500 | E [login to view URL]@[login to view URL] | @ @CUCoachJonny";

// Replace text with \n for plain text

var plainTextContent = [login to view URL]('_LB_').join('\n');

// Replace text with <br /> for HTML

var htmlContent = [login to view URL]('_LB_').join('<br />');

//[login to view URL]({to: [login to view URL][PLAYER_EMAIL], subject: subject, body: plainTextContent, htmlBody: htmlContent, attachments: pdf});

try {

[login to view URL]({

to: row[PLAYER_EMAIL],

subject: subject,

body: plainTextContent,

htmlBody: htmlContent,

attachments: pdf


response = "sent";

} catch(error) {

response = [login to view URL]();


[login to view URL](copyId).setTrashed(true);

return response


Compétences : Javascript, jQuery / Prototype, PHP, Développement de logiciel

en voir plus : \ m looking to hire someone to work 3 to 4 hrs a day 7 days. I will need you to follow a training video and post on my account a, I would like to hire a Software Tester - 23/09/2016 17:57 EDT, please translate these english paragraph to tshivenda precious i m a man just like any other man you are a beautiful woman it's, i need a top design for my market-place that i setup for you here , front end web developer javascript, esri developer javascript, developer javascript, web developer javascript project, russian developer javascript, mobile developer javascript, web developer javascript css freelance, asp developer bid hire, liferay theme developer javascript java, iphone developer cost hire, facebook developer javascript ajax, tianjin web developer javascript, iphone developer work hire, buddypress developer website hire, part time web developer javascript hourly rate usa

Concernant l'employeur :
( 1 commentaire ) Saffron Walden, United Kingdom

Nº du projet : #14681705

Décerné à:


Hello. I can help you with sendEmail function. Relevant Skills and Experience I am good at PHP, JavaScript, HTML and CSS. Proposed Milestones £50 GBP - Done.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% GBP en 0 jours
(159 Commentaires)

9 freelance font une offre moyenne de £22 pour ce travail


Hello, This is Milan We are the team of 20 developers based in Rancho Palos Verdes California . We have 6+ yrs combined experience with expertise in mobile and web technologies.. Relevant Skills and Experience So Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% GBP en 1 jour
(39 Commentaires)

Greetings, we are a team of 35 developers and 20 designers and each having more than 8 years experience. I would very much happy to work with you on your project and I have already checked detail your requirement and Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% GBP en 1 jour
(14 Commentaires)

Hi, We are serving in the field of Website & Software Design, HTML, CSS, Java, PHP, C#, javascript, bootstrap, angular.js, .NET, SQL, Biometrics, Android native/hybrid, since 2015. We also started providing service in Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% GBP en 1 jour
(31 Commentaires)
%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 2 jours
(22 Commentaires)

Hello, My name is Josh, I am a software developer with over 10 years of experience in building software solution from concept to finished product. My expertise includes android and iOS Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 7 jours
(3 Commentaires)

Hello Sir/Madam, I am available to start work on this project I have 8 years of experience in Development / Designing / SEO / SMO Waiting to hear from your end With best regards, Richardsan.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 2 jours
(2 Commentaires)
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% GBP en 1 jour
(0 Commentaires)
%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% GBP en 2 jours
(0 Commentaires)