stevenschmatz / export-google-form

:arrow_down_small: A small Google Apps Script file to export a form into a JSON file.
MIT License
105 stars 43 forks source link

TypeError: "getFeedbackForIncorrect".equals is not a function #9

Open patricio1979 opened 2 years ago

patricio1979 commented 2 years ago

I get this error

This is the form https://docs.google.com/forms/d/e/1FAIpQLSfzFxg9xl_MUtDjWtnOi_AUI_zn9dHuxOzORqnQ3lFfYCx0Fw/viewform?usp=sf_link

minhkhang1795 commented 2 years ago

Seems like the syntax has changed a bit. You can use "===" instead of ".equals"

if ("getFeedbackForIncorrect" === getKey || "getFeedbackForCorrect" === getKey
      || "getGeneralFeedback" === getKey) {return};
SarangT123 commented 2 years ago

That works but you should probably update the code for new users

avimar commented 9 months ago

PR #12 is the exact same as my #13