Skip to content

Conversation

@groffbo
Copy link
Contributor

@groffbo groffbo commented Jan 7, 2026

Why

We want a way to automatically export all response data for a form to an easy-to-read csv.

What

Created a response-to-csv.ts function to flatten all of the data for responses into a csv, with each row corresponding to a user, and all subsequent columns corresponding to each individual question.

Implemented with a export-csv.tsx component to sit as a button on each form card on the homepage. This button will be greyed out when 0 responses exist. Additionally, it will poll every window refresh for the updated count.

Response count is also shown on the form card.

The exported csv has the file format of {name}-responses-{date and time} for clarity.

Test Plan

This form has been responded to, edited, re-responded to, and edited again. Blank spaces are fine for the csv and so is exporting after edits and more responses.

I followed the exact same logic for grabbing the names and emails, the reason that they do not populate is 99.99999% probably due to the fact that my blade account is chud and broken rn (it doesnt think im a member so probably cant grab my data) but i absolutely encourage someone else to try this out and confirm its just me

Recording2026-01-06223802-ezgif com-video-to-gif-converter

@groffbo groffbo requested a review from a team as a code owner January 7, 2026 03:55
Copy link
Contributor

@DVidal1205 DVidal1205 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so peak

@DVidal1205 DVidal1205 added this pull request to the merge queue Jan 7, 2026
Merged via the queue into main with commit 9928e33 Jan 7, 2026
5 checks passed
@DVidal1205 DVidal1205 deleted the form-responses-to-csv branch January 7, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants