Find Jobs
Hire Freelancers

I would like to hire a Javascript Developer

£10-20 GBP

Completed
Posted almost 7 years ago

£10-20 GBP

Paid on delivery
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 }
Project ID: 14681705

About the project

9 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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 in 0 day
4.9 (159 reviews)
6.5
6.5
9 freelancers are bidding on average £22 GBP for this job
User Avatar
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 in 7 days
5.0 (3 reviews)
1.2
1.2
User Avatar
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 in 2 days
5.0 (2 reviews)
0.9
0.9

About the client

Flag of UNITED KINGDOM
Saffron Walden, United Kingdom
5.0
1
Payment method verified
Member since Jul 17, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.