Change cases when a form is submitted
See everything one form does to your cases, in the order it happens, and edit each change on its own screen.
An ordinary form saves its answers onto the case someone picked before opening it. Real work often needs more than that: an intake form that creates a client and a referral, a visit form that also closes the task it came from, a bed survey that updates one case per row someone filled in.
Case changes are how a form says what else happens. Each one creates a case, updates a case, or closes a case, and they happen in the order you put them in.
When you bring in a form from CommCare HQ, a supported case change stored among its questions keeps that position. Nova keeps any checks on its case name and connections next to the change in the submitted form.
For an approval time that must survive later edits, save it in a dedicated property that holds a date and time. A date property holds only the calendar day: a date and time question saved to one keeps the day it was answered on, where the person answering is. Calculated case changes preserve the clock time when exported to CommCare; the record's general last-modified time still changes on later updates. A saved date and time copied to another property is written again in the device's time zone, so it can land a day off when that zone's date differs from the date that was saved.
An update can assign a new owner only when a condition holds. When to assign the owner is available after you choose the new owner. If the condition is false, the case keeps its current owner, and the change's other values still save.
If a create can reuse a case ID, it must always send its owner. A conditional update after opening the existing case can change that owner when the condition holds.
An update can change a case’s type when the new type can keep its saved
values. A date can become text and keeps the original date string, such as
2026-04-17. Other changes that need to convert existing values still
require compatible property types.
A survey can also create a case with text, then change its type and replace that text with a date in the same submission. You can use a required, always-visible date question for that replacement.
An app brought in from CommCare HQ can keep a date and time question that saves the calendar day as the selected case’s external ID. This direct save runs on Android. The picker starts at the device’s current date and time when it has no answer. If the worker reaches the question and leaves it as shown, the form uses that displayed day. A question hidden by form logic leaves the external ID as it was. With Save only if changed, the form compares the day with the external ID from when the form opened. To ask the date and time separately, you can first remove the save to the external ID.
A hidden value set to the current date and time can save the local date to a Date property on the case a basic follow-up opens. The form keeps the date and time in the hidden value for its other calculations.
Choose the records a form opens with
Open the form’s settings, select Edit case changes, and expand Cases this form uses. A form can ask for more than one record. To transfer a member between households, add the household list twice and name the choices Current household and Receiving household. Each choice keeps its own identity when you rename it or change its position.
A worker can choose from a list or use a record ID from their worker information, a data table, an earlier record’s named connection, or a formula. An automatic choice stops if its source does not identify one available record. After correcting the source or choosing another record, the worker can try again. Use Earlier or Later to put a source before a choice that needs it. A list choice can show only the records connected to the record chosen right before it: choose that record under Narrow by the record before it.
Expand Values calculated when the form opens to give a calculation a name. For example, opening-record('Receiving household') reads the chosen record’s ID. Other form logic can use opening-value('opening_date') to read the opening date. In Preview, going back to change a choice asks for every later choice again.
In a menu’s settings, Open a single match automatically can save a tap when a form asks for a record from its list. Android can open the confirmation screen for that single match. A form running in Web Apps can use this setting when the choice proceeds directly.
A destination can carry each opening record into the next form. If both choices come from People, names such as “Person referring” and “Person receiving” let you tell them apart. A worker who opens the destination sees the form with both records already chosen. Back returns to the last choice the worker made.
A publish records the saved name of each opening record, including one the form only reads. Changing its label keeps that name. Nova shows which names will change or go away before you commit an edit to a published choice.
Open Starting values from records in the form’s settings to copy a value into a question when the worker opens the form. Choose Fill a question from a record, pick the question and its source record, and add the starting value. You can choose the property to copy and, when it belongs to a connected record, the connections to follow. For example, a visit can begin with the name of the household connected to the person the worker chose. Values from one record fill their questions in the form's order, questions the worker sees first and then hidden values, as CommCare HQ saves them.
The form sets its ordinary starting answers first. It then copies the record values in the order shown. If two records fill the same question, the later record supplies the answer the worker sees. A question inside a repeat receives a starting record value only when its answer node exists at that point.
In Preview, a running form keeps the record and table values it opened with. If another worker changes a record while you are filling it out, an answer set to save only when edited compares with the value you saw. If you lose access to a record the form needs to update, Preview asks you to reopen the form. Refreshing the browser starts a new Preview session.
A repeated create can use a Text or Whole number answer outside the repeat as a shared case key. Choose Shared case keyed by in Identity when every row should reach the same case. A form brought in from CommCare HQ can also close an existing case outside the repeat and save its new name and owner from a repeated create of the same case type. If both changes reach the same case, it stays closed.
Forms that open an existing case
When a question saves to the case the form opened, Nova gives it a starting value that reads that case's value, so the worker edits the value in place. The Saves to row says so: Start blank instead removes it, and you can replace it with any starting value. A later starting value that reads such a question reads the case's value. Leaving a question alone keeps what was there, and clearing it is a real change.
Nova won't add a save to the case, or move one to another property, where the question couldn't open on the case's value. A whole-number question can't start saving to a property that holds decimal numbers, and a choice question can't start saving to one that can hold values outside its choices, such as text, or several choices at once for a single-choice question, because CommCare stops the form when the question opens on such a value. Starting it blank instead would clear the case's value whenever a worker leaves it alone, so Nova offers a question that can open on it: a decimal question for decimal numbers, a multiple-choice question for several choices, or a text question for other values.
A save that already stands keeps its place even when its question starts blank, for example after you remove the save its starting value came from. Leaving the question blank then clears the case's value on submit. The question's Saves to row says so, and offers to open it with the case's current value, or says which kind of question could open on it.
A question on a follow-up or close form can also save to a case above the one the form opened, such as the household of the member it visits, through Cases above it in its Saves to list. That includes the case's name and its owner, so a visit can rename the household or hand it to another worker. A name saved this way is checked as every case name is: it can't be blank.
Nova also points out any starting value of a whole-number question that could
be a decimal, and you can start it on the whole part with int(...).
A question that saves to a child case type works differently. Each submission creates a new child case, so there is nothing to show yet and the question starts blank every time.
That difference is how you choose where information belongs:
- Something the case has, such as a phone number, an address, or a status, is a property of the case itself. The worker sees the current value and updates it when it changes.
- Something that happens to the case again and again, such as a visit, a meeting, or a delivery, is its own child case created from the followup form. Every occurrence is kept, nothing is overwritten, and the parent case carries only summaries such as the latest visit date, written by hidden calculated values. Writing a visit's answers straight onto the parent would replace the previous visit and open pre-filled with it next time.
Child case types and how a form creates them are described under Connections to other cases. Forms that work with several cases at once open blank instead; see Let people work with several cases at once. The preview runs the real form against your real case data, so the values a question opens with are the ones a worker would see.
Other case changes in the same form can also use the selected case's information. A new visit can take its name from the client and link back to that client. Every record has a read-only Record ID. A change can use an existing relationship to find the parent record to update, without asking the worker to type an identifier or storing another copy of it. Names and other useful details remain the better way for workers to choose records. These calculations use a record view from before their effects, even when an earlier change updates the record. The changes themselves run in the order shown.
A basic follow-up brought in from CommCare HQ can update a Text property in the form and then save an optional answer to the same property through Case Management. The optional answer supplies the final value. On submit, a blank answer clears the earlier value, including fixed text.
An open CommCare form can keep the record values it initialized with while another form changes the same record. A condition on an old value cannot promise to protect the record's current value when the open form is submitted. Preview evaluates case-change record reads against its current submission transaction; answers and captured calculations still retain the values from that form entry.
For progress that must never go backward, you can store separate facts that only become true, or save each event as a new child record, and calculate the displayed phase from them. An unfinished action can add history without clearing a completed fact. Every form that writes these facts or events needs to preserve them. This does not guarantee a fresh phase at submission or a timestamp written only by the first event.
A follow-up form that changes nothing on its case still marks the case as updated each time it is submitted, so the case's last-modified date moves. A follow-up form opened by a form link updates the case that link names. A form link that carries a case runs only when the worker's device holds a case of that type with the value it carries, so a value that names no case never opens the form; the next destination, or the form's Otherwise, runs instead.
This form's case
A form's type decides what happens to its own case. A registration can create its case only when a condition is true, and can close the case it creates, every time or when a condition is true. A close form closes its case every time or only when a condition is true. Any condition you can build in the condition editor works, and the line under it says where CommCare HQ keeps it: Case Management, or a Save to Case block, which needs Save to Case in the project space's plan.
A label directly on an advanced follow-up form can save OK to a text property
of the case the worker selected. This applies to labels without a checkbox, banner
or starting value. If the form hides the label, it leaves the previous value alone.
If a separate case change closes the same record, Nova uses a separate Save to
Case block for that close and keeps the label's previously published placement.
Where CommCare HQ keeps each change
CommCare HQ keeps a case change in one of three places: the form's Case Management settings, an advanced menu's case actions, or a Save to Case block in the form. Nova chooses the simplest place that can hold it, and once you publish, a change stays where your published app has it. An edit that needs a new place says so before it saves, because CommCare HQ's exports then show those answers under new columns. Save only if changed and saving to a case above work only in Case Management or case actions. Save only if changed is offered on a question saving to this form's case, a case above it, a new child case or the worker's record. A new case has no earlier value to compare with, so there it saves the answer only when the worker gives one.
A case change can save its new name and its owner only when changed too: turn on Save only if changed under the new name or the owner. A new name is saved only when it differs from the case's name. A case keeps its owner apart from the values it compares, so an owner is saved whenever the worker gives one, and a blank answer leaves the owner as it is. On a case the form creates, a blank answer leaves the new case with no owner. A new case's name and an owner that is the worker or no one are saved every time.
Where to find them
Open a form, choose the settings gear, and pick Edit case changes. The screen lists every change the form makes, and the settings row above it tells you the count without opening anything: a form that changes no cases says so.
The screen has its own address, so you can link a teammate straight to it, and the Preview control runs the form the changes belong to.
The list reads as sentences
Each row says what the change does in plain words:
Create a new referral case: once for each “Beds” entry, saves 3 properties, links it to another case
That list is the answer to “what does submitting this form do?”, which is the one question the underlying platform never shows anywhere. If a change only runs when an earlier one does, its row says so at rest, without you having to open it.
Add a change
Choose Add a change and say what it does:
- Create a case: then choose the kind of case. Nova creates it complete, with a name you can edit, so you never land on a half-built change.
- Update the case this form opened: saves values onto the case someone already picked.
- Close the case this form opened: ends its open case lifecycle and normally removes it from the worker's next synced set. Related open cases can retain it as a dependency. A close can still save final values, and server history remains. A business stage such as approved or delivered belongs in a separate property.
- Update the worker's record: saves answers onto the record of the worker filling in the form. It's offered when the app has worker information, and a form holds one such change.
The two choices for the case this form opened are only offered when the module picks a case before opening its forms. When it does not, the choice says so rather than disappearing. This form's case is always the first change and goes with the form's type.
Case-change choices wait for your Project's data tables to finish loading before they become available. If that read fails, the choice explains why it is paused.
Order matters, and some orders are refused
A later change can act on the case an earlier one created: that is how one submission registers a client and then files a referral against them. Because of that, order is not free.
Drag a change by its handle, or focus the handle and use the arrow keys (Home and End jump to the ends). If a position is not available, Nova says why before anything moves, and names the changes involved. There are two reasons, and they mean different things:
- Something else uses this change's result. Move the change that depends on it as well, or point it somewhere else.
- The submitted form cannot carry that order. Nothing you did is wrong. The form itself cannot express that sequence, because the two systems that process a submission would put the changes in different orders and disagree about the result.
Both reasons read the same whether you drag or use the keyboard.
Edit one change
Choose a row to open it. The middle of the screen holds everything the change works out when the form is submitted:
- When this runs: leave it out and the change happens on every submission.
- The case's name, who owns it, and (for an update) a new name.
- What it saves: the values that land on the case, each with its own optional condition so a value can be saved only sometimes.
- Connections to other cases: see below.
The panel beside it holds the choices: what the change does, the kind of case, which case, how often it happens, and removing it.
Those choices stay in sync. If you turn “create a referral” into “update the case this form opened,” Nova also switches to that existing case's real type. A case type that would conflict with the chosen case, a later type change, or a connection is disabled with the reason beside it; platform-owned case types never appear. You can choose an available option knowing it will save.
If a create brought in from CommCare HQ joins pieces of fixed text to name a case type, Nova shows the resulting type and keeps the calculation when you publish. An imported create can choose between two named types using a condition, when both types accept the same saved values and the create has no case connections. A survey can bring in both case types when its form names them, even if neither has a case list. Preview creates the case with the type selected by the condition. Choosing a different case type replaces an imported calculation. If the imported form sets the primary type again in the same submission, Preview and the case list keep that final type. A case created and changed to another type in the same form can replace a Text property with a Date. An unanswered or hidden optional Date clears the earlier value.
A basic case update brought in from CommCare HQ can keep a write through a case connection named user when the connection leads to one declared ordinary case type. The form saves the value on the connected case. If the connection is missing at submission, the form saves none of its changes.
Values can come from a form answer, from information already on a case, from fixed values, from information about the person using the app, from Project data, or from a calculation you build. A Project data value is found by matching one of the table's rows; the complete change remains editable.
When a condition compares a single-choice or multiple-choice question whose choices are written in the form, its value is A choice of this question: pick one of the question's choices by its label. The condition stays connected to that choice, so changing the choice's saved value updates the condition too, and the choice can't be removed while the condition compares with it.
A condition can also be a yes or no answer on its own. A hidden value calculated
as a condition, such as “a note was given,” can decide whether a referral opens,
with no comparison beside it. Any other answer needs a comparison, or is
answered beside the question in the condition editor (boolean(...) around it
in chat) to say you mean "answered at all": a text or choice answer of 0, or
the text false, still counts as answered, while a blank answer, or a number
question answered 0, counts as not. An app brought in from CommCare HQ whose case change
runs when a question "is true" comes in this way.
A number and the text of a number compare as people expect. A choice whose
saved values are 1 and 0 can be compared with the number 1, and a whole
number with '1', in a case change and in a case list's columns and filter.
In a Search field's condition, and in the filter of a list that offers Search,
compare like with like: the choice with '1', or the number with 1.
Two property names save somewhere CommCare keeps apart. A value saved to
location_id becomes the case's own location ID: text another system gives
the case, up to 255 characters. It isn't one of your Project's places and gives
no one access to the case. Forms, case lists and details read it like any
other property, while a Search field, its condition, and the filter of a list
that offers Search can't, because CommCare's server search doesn't keep it. A value saved to hq_user_id is kept as that property and also
becomes the case's external ID once the device next syncs. The worker's own
record keeps its hq_user_id in step with the worker, so a form can't save it
there.
A basic follow-up that opens one case can save to a record linked through its
parent when both links have a single declared case type and all three types
are different. The user link is a connection between cases. Both linked
cases need to exist to submit the form. An irrelevant question leaves the
property unchanged, and a visible blank answer clears it.
This path saves answers. A separate case change can save attachments.
When a value's condition is false, that property stays as it was. Preview skips the value's calculation, so unanswered inputs used only by that skipped value do not block submission.
A calculation can also choose between values. Preview skips arithmetic in the branch it does not choose, so an unanswered numeric question in that branch does not block submission. When the chosen value is an unanswered numeric question, a new case leaves the property empty and an existing case clears its previous value. To keep the previous value instead, give that saved value a condition. Zero remains a value.
A calculation can count related cases, such as visits belonging to the selected patient. A condition can also check whether related cases exist or are missing. These rules travel with the exported form, including when no other question reads case information.
How often a change happens
A change normally happens once per submission. Set How often to a repeating section and it happens once for every entry someone adds, one case per bed, one update per visit.
That choice decides which answers the change can use. A change that happens once cannot read an answer that has one value per entry, because there would be no way to say which entry it meant. Nova only offers the answers that work, and says why when it cannot offer one.
Identity: a distinct case, or a keyed one
A create normally makes a distinct case every time. If the same submission should reach the same case when it is sent again, a record keyed on a registration number someone types, set Identity to that answer instead.
Connections to other cases
A connection says how the case relates to another one:
- Belongs to that case: ordinary parent-and-child.
- Uses that case as its host: a host connection distinct from ordinary parent-and-child. Closing the host does not close this case, but can remove the extension chain from the worker's synced set.
A connection does not copy ownership. When ordinary question answers create a child case, it belongs to the current worker by default. An explicit Create a case change can set the owner required by your case-sharing workflow.
A host connection keeps its relationship in Preview, downloaded apps, and apps uploaded to CommCare HQ, including when ordinary question answers create the related case.
Set the connection's target to Remove this connection to break an existing one instead of making it. That is what you reach for when a temporary grouping has done its job and the cases in it need to survive on their own.
The other end can be the case the form opened, a case made by an earlier change, or a case id worked out by a calculation. Choosing the calculation opens its full editor directly under the target. Choosing a known case also brings that case's current type along in the same edit, including a type changed by an earlier operation, so the target and type cannot get temporarily out of sync.
In Preview, a calculation that produces no case id or names a case that is no longer available is refused beside the running form. The whole submission is atomic: no case is created, changed, linked, or unlinked until every target can be resolved.
Related cases a menu's case type can reach
A menu's settings list Related cases: each link its case type carries and
the case type at the other end. Links your forms make show as Used in the
app. Add a related case records a link no current form makes, such as one
older cases still carry, and the same link name can lead to more than one case
type, as a visit's site can lead to a clinic or to a home. Columns and
calculations that read through a link then offer each case type it reaches. A
link name starts with a letter or underscore and can hold letters, numbers,
underscores, dots and hyphens. A case list column reads only through a link
whose name starts with a letter and holds no dots, so a column offers only
those. Nova and an MCP agent add or remove one such link
with set_case_type_parent and its link setting.
When a form's link opens the case it creates
When a form's link opens the case the form creates, CommCare HQ needs that menu to be an advanced menu, and Nova publishes it as one. Once published, it stays advanced while it can be. A menu that lists several cases at once, whose forms read the search, whose case list in the menu is narrowed, or whose cases link to their parent under more than one name can't be advanced, and Nova says so where you set the link.
When you bring in an Advanced form, the required Text question that names a
new case can also determine how it connects to the first selected case. If
the question allows exactly child or extension and case sharing is off,
Nova keeps that behavior. A child belongs to the submitting worker, and an
extension uses the selected case as its host without a separate owner.
Removing a change
Removing is offered only when nothing depends on the change. When something does, the panel names each one and the exact place holding the reference: the value it saves, the case it changes, or when it runs. That way you know what to edit first.
Ask Nova or an MCP agent
Case changes are also part of Nova's shared authoring tools. You can ask Nova in
chat to add, edit, move, or remove them, and a connected MCP agent has the same
abilities. When an edit moves where CommCare HQ keeps a change, Nova and an MCP
agent report each move before the work is saved. Ask for the same change in the ordinary names you see in the builder;
Nova keeps each reference attached to the right question or case change even if
you later rename or move it, and the names shown in the builder stay current.
Change IDs and connection names start with a letter or underscore and can
include letters, numbers, and underscores. Connection names can also include
hyphens. When CommCare HQ keeps a case change as an Advanced open action, its
connection name can also include periods after the first character, as in my.parent. Android-only apps can write connection names such as métrique and Ωprobe. Both platforms can follow a saved connection with a supported name. Nova keeps its exact spelling and case. Saved property names start with a letter and can include hyphens.
Three names are taken, because CommCare HQ's form builder can't open a form that
holds them: instance, bind and parsererror. In a Save to Case change,
a connection named close or create is available when that same change
already closes or creates the case. CommCare HQ's form builder reads those names
as actions. A Save to Case change can't save to a property named close.
One case change can create or update a case and then close it. Its closing condition applies only to the close. A separate condition on the case change decides whether the whole change reaches the submission.
The shared tools also describe each change's target, the record properties its conditions and values read, what it writes, and any matching record identities. Possible matches stay marked as possible. This feedback helps explain the change; it does not lock records or reject a change that can overwrite a later value.
A request that adds several changes can connect them in one atomic call, for example, create a referral and then update that new referral. If any change is invalid or the order cannot be preserved on submission, none of the call is saved and the response says what to adjust.
An operation can save a text value into a single-choice property, or an integer
into a decimal property, without adding a helper question. Choice labels and
options belong to the question; saved values can also come from an operation.
A number, a date or a location saved into a text property is kept as the text a
phone saves for it: a whole number as its digits, a decimal number as Java
writes it, a date as 2024-05-01, a location as its four numbers. Writers of
one property that agree on no one kind of value are kept as text the same way,
unless one of them is a date and time or a time, or a question opens showing
the property as a number, a date, a time or a location. Nova still checks every possible result of an expression against
the destination type, so a fractional value cannot be assigned to an integer
property.
Remove unused property definitions
You can ask Nova to remove custom property definitions that the app no longer uses. Nova checks that no question, case change or rule reads or writes them. It also checks saved records and values set aside by earlier conversions in the same transaction as the change. If any values remain, Nova keeps the definition and explains that a reviewed data migration is needed. This cleanup never deletes collected data or built-in record metadata.