Oleg Isonen 6d73186a8b fix: Reset Form fields after successful submission (#6583)
After a successful Form submission, a visible Form returns to its
authored field defaults. The newly inserted Form starts blank, so
visitors can send another message without clearing the previous one.

## Checklist
- [x] Call the browser's Form reset after a successful Resource
submission.
- [x] Preserve entered values after failed submissions and keep
Navigation mode behavior unchanged.
- [x] Cover text, selection, and file inputs, including authored
defaults, in focused tests.
- [x] Handle authored fields named `reset` without skipping the reset or
resource refresh.
- [x] Verify Builder Preview and published-site behavior use the same
client path.
- [x] Update the Form guide for the changed behavior.
- [x] Explain the prototype reset call in a short code comment.
- [x] Run focused browser tests, typecheck, formatting, and lint on the
follow-up.
- [x] Verify required CI on the follow-up commit.

The reset test fails when the reset call is removed. The `reset` field
test failed before the review fix. Both pass now.
2026-10-22 15:40:01 +02:00
2026-07-12 11:27:58 +02:00
2026-02-05 10:25:17 +01:00
2026-03-20 21:09:47 +01:00
2023-09-06 21:43:29 +03:00

builder-screenshot

Webstudio is an Open Source Visual Development Platform for developers, designers, and cross-functional teams. You own the data, components, and infrastructure. You can use the hosted version or roll out your own.


Learning Resources

Social Media

License

  • Webstudio core (all functionality in this repository) is free/open-source under AGPL-3.0-or-later.
  • sdk-components-animation package (optional) is proprietary. You must accept the Webstudio, Inc. EULA located in sdk-components-animation/LICENSE before using it.
Languages
TypeScript 98.9%
PLpgSQL 0.5%
CSS 0.3%
Shell 0.2%
JavaScript 0.1%