For the most part of this code I have down. The only issue I am having is formatting a phone number that has been inputted to the Google Form. On the Spreadsheet the values come in looking like 1234567890, just a string of numbers. I am using body.replaceText("%PHONE1%", row[2]);
to replace %PHONE1% in the template document. Issue is it numbers come in the same as the spreadsheet 1234567890 and I want the phone number to look like (123) 456-7890.
It may possibly something like
Utilities.formatString('%11.6f', 123.456);
Please help, im a super newb at any type of scripting any help would be appreciated. Thank you