Find Jobs
Hire Freelancers

I would like to hire a Javascript Developer

£10-20 GBP

Concluído
Publicado há quase 7 anos

£10-20 GBP

Pago na entrega
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 PLAYER_EMAIL = 3; var COACH_FULL_NAME = 4; 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"], [2,"keyPlayerSurname"], [4,"keyCoachFullName"], [6,"keyDestroyer1"], [7,"keyDestroyer2"], [8,"keyDestroyer3"], [9,"keyCreator1"], [10,"keyCreator2"], [11,"keyCreator3"], [12,"keyGoal1"], [13,"keyGoal2"] [14,"keyGoal3"], [15,"keyPsychology"], [5,"keyDevCentre"]]; var splitFields = ["keyDestroyer1", "keyCreator1", "keyGoal1"]; 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]); break; } } 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 }
ID do Projeto: 14681705

Sobre o projeto

9 propostas
Projeto remoto
Ativo há 7 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
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.
£50 GBP em 0 dia
4,9 (159 avaliações)
6,5
6,5
9 freelancers estão ofertando em média £22 GBP for esse trabalho
Avatar do Usuário
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 mobile app development, website development using Drupal, Wordpress and Django content management system. I offer services in the following areas of specialisations :- — Android and IOS Mobile App developments — Mobile App UI and UX design -- Drupal Website development — Django Website development -- Wordpress site development — Software Development — Responsive website development -- Migration of drupal 7 to drupal 8 -- Migration of wordpress website from host server to another server. -- Conversion of website to android mobile app -- Upgrade Wordpress to latest version -- Upgrade and update Drupal site to latest version -- Search engine optimisation — Corporate logo and branding -- install additional plugins :e.g. SEO by Yoast, All in One SEO pack that is able automate most of SEO work automatically on Wordpress sites. I can guarantee high quality work and project delivery, quick response to your messages (during work hours). I am 100% confident that I can meet and exceed your requirement. I can accomplish this job on time and on budget and to specification. Please feel free to contact me for any questions. I look forward to working with you on this project. Thanks for the opportunity. Josh (UK Time: 09:00 – 18:00)
£20 GBP em 7 dias
5,0 (3 avaliações)
1,2
1,2
Avatar do Usuário
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.
£15 GBP em 2 dias
5,0 (2 avaliações)
0,9
0,9

Sobre o cliente

Bandeira do(a) UNITED KINGDOM
Saffron Walden, United Kingdom
5,0
1
Método de pagamento verificado
Membro desde jul. 17, 2017

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.