Unfortunately beloved Glitch.com is closing down so I'm rescuing little code projects of old. This was a very basic draft of an expandable feedback form which collects feedback to FormSpree from your webpage. Try it out by clicking the feedback button below to pop up the form. The starting point was that it should just be a single JavaScript file. This was set up as a demo - to use with Formspree as per the example you'll need to change the destination of the form on line 2 of the code by signing up for your own Formspree account. The form submits along with the pagepath on the page that it was on.

Next steps

  • Ideally gathered feedback would be able to be pulled through to the page e.g. text in the feedback module saying "This page has a score of X% from the past 100 feedback submissions." or "This page has had X feedback sumissions in the past 30 days." This would require calculation (unique page paths filter then average from all sumbitted) and caching. This can be done in part via Formspree's API.
  • Date isn't explicitly gathered, it's provided by FormSpree - it might be worth adding that in.
  • Form submits would ideally show success text on page rather than offsite.
  • Add warning text about required field.
  • Make the scrollbar visible always.
  • Make it nicer on mobile.
  • Set up Formspree's captcha.
  • 2025-05-29:lunchtime update - tweaked to check for UK postcodes, strings of numbers and an external list of swear words. Next step would be to redact.
  • Build a front-end with login section to review feedback and filter and export to sheets.
  • Formspree prevents any access to their IP address logging so all submissions are anonymous.