• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
andreterron

andreterron

form_handler

Public
Like
1
form_handler
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
main.tsx
https://andreterron--44bbdb8e27b311f0aecd569c3dd06744.web.val.run
README.md

Receive form responses

Live demo: https://andreterron-form_demo.web.val.run/

Create a form that posts to your val:

<form action="https://andreterron-form_handler.web.val.run" method="post"> <label for="username">Val Town username:</label> <input name="username" type="text"> <button type="submit">Submit</button> </form>

And get your results stored as an array:

Create val
// set by andreterron.form_handler at 2023-08-10T21:04:43.364Z let formResponses = [{ "username": "andreterron", }, { "username": "stevekrouse", }];

Usage

  1. Fork this val and click the πŸ”’ to set it as "Unlisted"
  2. Open the val menu β†’ Endpoints β†’ "Copy web endpoint"
  3. Use that url as the action attribute of your form

Check out the example val: https://www.val.town/v/andreterron.form_demo

Storage of form submissions

This val saves to another val (@me.formResponse), which has a 100kb limitation (250kb for pro users), if you want to store them in a more scalable solution, check out our guides

Migrated from folder: A_Make_A_Val_Day/_23_08_10_Forms/form_handler

HTTP
  • main.tsx
    andreterron--44…44.web.val.run
Code
README.md
H
main.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.