heaversm / google-custom-form

Submit to a google spreadsheet using a form of your own design
194 stars 50 forks source link

Resending with altered form details sends the same again #7

Open smxmn opened 8 years ago

smxmn commented 8 years ago

Pressing on submit the second time sends the same data, even if I change every input field. Chrome Version 51.0.2704.103 m (64-bit), win7.

miXwui commented 7 years ago

Hey @smxmn , it's been almost a year but maybe this will help someone out:

It's because: $('#input-form').one('submit',function(){

http://api.jquery.com/one/ "Attach a handler to an event for the elements. The handler is executed at most once per element per event type."

If you change one to on like so (http://api.jquery.com/on/): $('#input-form').on('submit',function(){

the issue should be fixed.