Blog
·7 min read

Migrating Bubble Forms: Preserve Drafts, Validation and Save Behavior

A rebuilt form can look identical to its Bubble version and still change when customer data is stored. A field might save as soon as someone tabs away, while the rest of the page waits for Submit. A Cancel button may close a popup without undoing those earlier writes. A multi-step wizard may hold answers only until the page reloads.

When migrating a Bubble form to code, map those behaviors before choosing components. The goal is not to reproduce every accidental quirk. It is to make the existing behavior visible, agree on any changes, and give users an accurate answer to one question: “Has this been saved?”

Start with a save contract, not a screenshot

For each important form, write a short save contract: what the user is editing, where unfinished values live, which action persists them, and what happens if the flow stops halfway through. Screenshots are useful for layout, but they do not reveal these rules.

Take an illustrative customer-profile editor. The phone field uses auto-binding; a notes field is saved by a button workflow. The user changes both, clicks outside the phone field, then selects Cancel. Depending on the app’s implementation, the phone change may already be stored while the notes are discarded. Rebuilding the screen as a single “save everything” form changes that behavior, even if every label stays the same.

There are two defensible outcomes. Preserve the mixed saving model and make it clear, or agree to replace it with one explicit Save action. Treat the second as a product change with its own acceptance criteria, not an invisible improvement bundled into the migration.

Separate temporary values from stored records

Bubble’s custom-state documentation describes page-side variables that reset when the page reloads. They are not durable drafts, and they are not a secure place for secrets. A wizard that stores answers in custom states therefore needs a different migration decision from one that creates a draft database record on its first step.

Inventory three categories separately:

Unsubmitted input values: text or selections the user has entered but not yet committed.

Temporary interface state: the active step, an expanded section, or a selected item held in the current page.

Persisted draft data: a record deliberately saved so work can resume after navigation or sign-in.

Do not turn every temporary value into a database field. Equally, do not replace a resumable server-side draft with component state just because it makes the first screen easier to build. That would remove a capability users may depend on.

For persisted drafts, agree who can resume them, when they expire, and whether two tabs can edit the same draft. Browser storage can be appropriate for some non-sensitive convenience data, but it is not a substitute for an authenticated, access-controlled draft service. Match the storage choice to the data and recovery requirements.

This inventory complements the Bubble data migration checklist. Exporting stored records does not capture answers that exist only in an open browser tab. If a cutover interrupts long-running forms, decide whether users must finish, deliberately save a draft, or re-enter unfinished work.

Audit auto-binding before rebuilding Save and Cancel

Bubble distinguishes workflow-driven saves from auto-binding. Its data-saving guide explains that auto-bound inputs save when they lose focus and operate on an existing record. Auto-binding also depends on the relevant field permissions.

For each auto-bound field, inspect the actual behavior in a safe test environment. Type a value, move focus away, then reopen the record. Repeat with a user who lacks editing rights. Check the visible result and the stored value rather than assuming that an editable input guarantees a successful save.

In the replacement application, label intermediate states honestly. “Saving…” means a request is in flight; “Saved” should mean the application has confirmed the intended persistence. A failed write should leave a recoverable value and a useful error, not a success toast followed by a silent revert.

Cancel needs an equally precise definition. It might discard an unsaved draft, leave already-autosaved fields untouched, or abandon a newly created draft record. If the product requires rollback, implement and test that explicitly. Closing a dialog is not a rollback mechanism.

Keep permission mapping in the wider privacy-rule migration work. A hidden or disabled form control is a user-interface decision; it must not be the only barrier preventing an unauthorized update.

Define the boundaries of a multi-step form

A wizard has at least two different kinds of progress: moving to the next screen and committing information. They do not have to happen together.

Write down what Next, Back, Save draft and Submit each do. For example, Next may validate the current step without saving; Save draft may accept incomplete information; Submit may require a complete, valid application and change its business status. Avoid using one validation rule set for all three unless that is the intended behavior.

Also decide what happens when earlier answers make later ones irrelevant. If a user changes “Business” to “Individual,” should the company-registration fields be cleared, retained as an inactive draft, or still submitted? Merely hiding those inputs leaves the answer ambiguous. Define the server-side behavior as well as the screen behavior.

Keep draft creation separate from final submission. A record’s existence should not accidentally trigger notifications, approvals, or reporting meant for completed submissions. If downstream workflows depend on a status transition, preserve that boundary and check retries against it.

Keep fast feedback and authoritative validation

Client-side checks help people correct mistakes before a round trip. They cannot enforce the complete data contract. MDN’s form-validation guidance explicitly distinguishes this feedback from the server-side validation and security checks that are still necessary.

Map each important rule to the layer that must enforce it. The HTML required attribute can improve browser feedback; a server rule must still reject a missing value on final submission. A record-specific permission check must use the authenticated user and current record, not a role sent by the form.

Preserve business meaning when normalizing values. Trimming accidental spaces may be appropriate for a name, while applying the same transformation to free-form text or identifiers can change what the user intended. Decide how empty strings, omitted values and explicit clearing requests differ. Otherwise an edit can erase a field merely because the replacement client did not include it.

Error messages are part of the migration, not cosmetic polish. Keep valid answers after a rejected submission. Associate an error with its field, explain what to change, and make the overall outcome available without relying only on color. The W3C guidance on form notifications is a practical reference for accessible error and success feedback.

Make uncertain saves and competing edits explicit

A slow or interrupted connection creates a different problem from invalid input. The user may not know whether the server accepted the request. Automatically resubmitting without a duplicate-prevention design can create two records or trigger a business action twice.

Disabling Submit during an in-flight request is useful feedback, but it is not sufficient protection by itself. For create or finalize operations, define how the server recognizes a retry of the same intended submission. Keep the same operation identity across that retry, and return the existing outcome where appropriate. The exact implementation depends on the backend and the side effects involved.

For edits, agree what should happen if another person changes the record while the form is open. A version check can reject a stale update and ask the user to review the latest values. A merge may be suitable for independent fields. Neither approach should silently overwrite someone else’s work without an explicit product decision.

An optimistic interface can feel responsive, but distinguish a pending change from a confirmed save. If the request fails, show which values remain unsaved and give the user a safe recovery path.

Use a small worksheet to make the contract testable

For each high-value form, complete these prompts before implementation:

Record and ownership: Which record is edited, and who can create, resume or submit it?

Persistence trigger: Which fields save on blur, on Next, on Save draft or only on Submit?

Interruption behavior: What survives Back, Cancel, a reload, a sign-out or an expired session?

Validation boundary: Which incomplete values are acceptable in a draft but not in a final submission?

Side effects: Which event starts emails, approvals or other downstream work, and how are repeats handled?

Conflict and recovery: What does the user see after a failed request, an uncertain response or a competing edit?

Turn the answers into observable tests. For the mixed profile editor, check the stored phone number and notes after Cancel, not just whether the popup closes. For a wizard, reload at each step and verify the agreed recovery behavior. For final submission, test a repeated click and a repeated request separately.

Use seeded test records and controlled failures rather than experimenting on real customer data. Compare the old and new flows against the agreed contract. When the migration intentionally changes a behavior, record the new expectation instead of treating the old application as unquestionable truth.

What to bring into migration scoping

Choose one form that represents the difficult parts of your product: a resumable application, an editor with auto-binding, or an approval flow with several roles. Bring its field list, workflow triggers and save contract into the architecture discussion. It gives the team a more useful scope boundary than a count of pages or inputs.

Bubble to Code’s team brings together Bubble developers and software engineers. Its migration process starts by mapping workflows and dependencies before rebuilding them. Use that discovery to agree on draft persistence, validation and final-submit behavior alongside the rest of the application. If you are planning a rebuild, discuss your critical forms with Bubble to Code: what must stay the same, what should change, and what evidence will show that users can save their work reliably.

Sources

  1. 01custom-state documentation · Bubble Docs
  2. 02data-saving guide · Bubble Docs
  3. 03MDN’s form-validation guidance · MDN Web Docs
  4. 04W3C guidance on form notifications · W3C

Keep reading

Bubble to Code is an independent service. Not affiliated with, endorsed by, or sponsored by Bubble Group, Inc.