Git Product home page Git Product logo

Comments (16)

nelsonic avatar nelsonic commented on May 17, 2024

Hi @HGBeary, thanks for contacting us!
Can you please clarify if you want new Labels or new Form Fields?
Labels describe the fields whereas fields allow you to enter/record more data.

from learn-to-send-email-via-google-script-html-no-server.

HGBeary avatar HGBeary commented on May 17, 2024

Thanks for the quick reply! I've prepared a form for volunteer tutors to
enter their monthly hours: text fields for tutor info, student info, hours,
miles, etc. Getting all of that data into the spreadsheet is my goal. Henry

Henry G. Beary
HGB Diversified Services LLC
"Small Business Consultants"
860 350-6123 (office)
203 994-4935 (cell)

On Tue, Dec 1, 2015 at 2:25 AM, Nelson [email protected] wrote:

Hi @HGBeary https://github.com/Hgbeary, thanks for contacting us!
Can you please clarify if you want new Labels or new Form Fields? Thanks!


Reply to this email directly or view it on GitHub
#9 (comment)
.

from learn-to-send-email-via-google-script-html-no-server.

nelsonic avatar nelsonic commented on May 17, 2024

Ok. Understood. I will need to slightly modify the form handler to achieve this.
When do you need it? (we have a deadline today, but we can take a look at it tomorrow, is that ok...?)

from learn-to-send-email-via-google-script-html-no-server.

HGBeary avatar HGBeary commented on May 17, 2024

Wow...thank you so much! Tomorrow would be perfect! Attached is a screen
shot of what my database-driven page will look like when I finally get
there; for now, the mail form will work. Thanks again, Henry

Henry G. Beary
HGB Diversified Services LLC
"Small Business Consultants"
860 350-6123 (office)
203 994-4935 (cell)

On Tue, Dec 1, 2015 at 8:35 AM, Nelson [email protected] wrote:

Ok. Understood. I will need to slightly modify the form handler to
achieve this.
When do you need it? (we have a deadline today, but we can take a look
at it tomorrow, is that ok...?
)


Reply to this email directly or view it on GitHub
#9 (comment)
.

from learn-to-send-email-via-google-script-html-no-server.

nelsonic avatar nelsonic commented on May 17, 2024

@HGBeary i've updated the form handler to be generic so that you can add any fields to the form and collect any data in the Google Spreadsheet.
see: https://github.com/dwyl/html-form-send-email-via-google-script-without-server#add-your-own-fields
If you have any other questions let us know!
Thanks again for your feedback.

please ⭐ the repo to show others you found it useful...

from learn-to-send-email-via-google-script-html-no-server.

HGBeary avatar HGBeary commented on May 17, 2024

Thanks for the updates! I've got a minor (I hope) issue: if I use

I get the message page but the data does not get emailed
or put into the spreadsheet. If I don't use the id=gform I get a page of
data but I also get an email and the spreadsheet populates. What am I doing
wrong?? Here's my test page without the id="gform":

http://lvg-ct.org/Tutor-Form-monthly-report-Gmail.php Thanks again for
getting me this far! Cheers, Henry

Henry G. Beary
HGB Diversified Services LLC
"Small Business Consultants"
860 350-6123 (office)
203 994-4935 (cell)

On Thu, Dec 3, 2015 at 2:37 AM, Nelson [email protected] wrote:

@HGBeary https://github.com/HGBeary i've updated the form handler to be
generic so that you can add any fields to the form and collect any data in
the Google Spreadsheet.
see:
https://github.com/dwyl/html-form-send-email-via-google-script-without-server#add-your-own-fields
If you have any other questions let us know!
Thanks again for your feedback.


Reply to this email directly or view it on GitHub
#9 (comment)
.

from learn-to-send-email-via-google-script-html-no-server.

nelsonic avatar nelsonic commented on May 17, 2024

The gform id is required in the form because that's how the form handler "listens" for the submission event. Try ading the id to your form and then opening your developer console to check if there are errors. (there shouldn't be... but if there are keep the page live and we can help you debug them...)

also, consider the addressing any markup validation issues: https://validator.w3.org/nu/?doc=http%3A%2F%2Flvg-ct.org%2FTutor-Form-monthly-report-Gmail.php to prevent issues.

from learn-to-send-email-via-google-script-html-no-server.

HGBeary avatar HGBeary commented on May 17, 2024

Thanks for the reminder to clean up my html! The attached screen capture
shows the error from the console. Thanks again, Henry

Henry G. Beary
HGB Diversified Services LLC
"Small Business Consultants"
860 350-6123 (office)
203 994-4935 (cell)

On Thu, Dec 3, 2015 at 4:22 PM, Nelson [email protected] wrote:

The gform id is required in the form because that's how the form handler
"listens" for the submission event. Try ading the id to your form and
then opening your developer console to check if there are errors.

also, consider the addressing any markup validation issues:
https://validator.w3.org/nu/?doc=http%3A%2F%2Flvg-ct.org%2FTutor-Form-monthly-report-Gmail.php
to prevent issues.


Reply to this email directly or view it on GitHub
#9 (comment)
.

from learn-to-send-email-via-google-script-html-no-server.

nelsonic avatar nelsonic commented on May 17, 2024

It appears That Github does not allow images to be uploaded to issues as email attachments... Please manually upload it, or send us the link to the version of the page with the gform I'd. Thanks.

from learn-to-send-email-via-google-script-html-no-server.

HGBeary avatar HGBeary commented on May 17, 2024

When I run the page in the Chrome debugger I get the following error on
line 24 of form-submission-handler.js:

Uncaught TypeError: cannot read property “style” of null

Henry G. Beary
HGB Diversified Services LLC
"Small Business Consultants"
860 350-6123 (office)
203 994-4935 (cell)

On Fri, Dec 4, 2015 at 2:02 AM, Nelson [email protected] wrote:

It appears That Github does not allow images to be uploaded to issues as
email attachments... Please manually upload it, or send us the link to the
version of the page with the gform I'd. Thanks.


Reply to this email directly or view it on GitHub
#9 (comment)
.

from learn-to-send-email-via-google-script-html-no-server.

nelsonic avatar nelsonic commented on May 17, 2024

Ah... that's because you have changed the DOM significantly.
the line attempting to apply the style is to hide the form once its been successfully submitted.

You are serving the page using a PHP-enabled server, this script was meant to be for static pages where no sever interaction was permitted...

You can still take advantage of the script while serving the page from PHP, but you have much more power than our original constraint dictated.

If you are going to serve the page from your Dreamhost server, and alter the page's DOM, it might be worth customising the form-submission-handler.js and loading that from your static folder too.

from learn-to-send-email-via-google-script-html-no-server.

estettin avatar estettin commented on May 17, 2024

How can you add a new field that has drop down options or allows users to select more than one option

from learn-to-send-email-via-google-script-html-no-server.

 avatar commented on May 17, 2024

@nelsonic I've added a checkbox input to my form and the corresponding column to the spreadsheet - everything else is working fine, but no matter if I check the checkbox or not, I'm getting the same value reported to the spreadsheet. Do you know how to accomplish this for a simple True/False value?

from learn-to-send-email-via-google-script-html-no-server.

mckennapsean avatar mckennapsean commented on May 17, 2024

Does our OP have any more concerns on this issue? If not, please close! Hopefully you were able to get something working, but static pages are best.

For other posts, please see #31 on the checkbox input (new features/bugs should be separate issues), and same for a drop-down multi-select. I can take a look at these when I have more time.

from learn-to-send-email-via-google-script-html-no-server.

mckennapsean avatar mckennapsean commented on May 17, 2024

The original issue has been resolved with the support for more form fields. Again, please post in other issues if particular fields are not working for you!

from learn-to-send-email-via-google-script-html-no-server.

mckennapsean avatar mckennapsean commented on May 17, 2024

@divyats6550

This issue is >3 yrs old and I do not believe has anything to do with captcha. We have had issues around captcha if you search closed GitHub issues. We implemented a Honeypot technique and recently made it the default experience for all forms as well (that utilize the JS that is).

from learn-to-send-email-via-google-script-html-no-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.