
A reference such as 001284 identifies a record. It is not the quantity 1,284. If a Contact Form 7 connector converts that reference into a number, the submission can succeed while the team receives a value that no longer matches its account system. Preventing this requires agreement across the form, transport, destination and export workflow.
This guide uses invented references to show how to review that agreement. It does not describe a native CF7 Analytics integration or tests performed on your installation. Start on staging and retain existing production field names until every dependent mapping has been reviewed.
Write the identifier contract first
Ask the receiving team which characters are meaningful. Does the reference always contain six digits, can it contain letters, and are spaces or hyphens significant? Is 001284 different from 1284? Write the answers beside the destination property definition. An example alone does not establish a rule.
Do not assume that every postal code, membership number or customer reference follows your own country’s convention. If several formats are legitimate, collect the original text and route uncertain matches for review. A broad “remove everything except digits” transformation can destroy prefixes that distinguish records.
Keep identification separate from authorization. A visitor knowing an account reference does not establish permission to view or change that account. The reference helps locate an inquiry; any sensitive action needs the receiving system’s normal identity and access checks.
Choose a text field for a reference
CF7 supports single-line text and required text* fields. Use one for a reference whose spelling matters. For an illustrative six-character reference policy, the form template might contain:
<label>Customer reference (six characters, including any leading zeros)
[text* customer-reference minlength:6 maxlength:6]
</label>
The six-character limit is an example, not a universal account rule. Length options do not restrict input to digits or prove that the reference exists. If your business needs an additional format check, implement and test a narrow server-side rule, with an error that explains how the visitor can correct the answer.
A numeric keyboard is a convenience, not a data type. Inspect the actual rendered input and installed CF7 behavior before adding custom attributes. Avoid switching to number just to influence the keyboard. Our number-field guide explains when a genuine quantity needs numeric bounds and steps.
Preserve the string in the connector
Trace the reference through every mapping step. In JSON, the intended representation is a quoted string. A connector must not apply an integer cast, arithmetic operation or automatic numeric conversion before serialization.
{
"customer_reference": "001284"
}
JSON number syntax does not support an ordinary leading-zero number such as 001284. Converting to a valid number, 1284, would lose the original spelling. Changing it back to a string later cannot recover how many zeros the visitor supplied unless an independent, authoritative fixed-width rule exists.
Review mapping previews as well as actual stored values. Some tools display a friendly string while assigning a numeric destination type. If a schema validator is available, require a string for this property and make a type mismatch visible. A failed mapping should produce an actionable exception, not silently store a substitute value.
Check the CRM property and match rule
Select a destination property that preserves text. Document whether comparisons use the original reference or a separate normalized copy. If the team ignores presentation hyphens, retain the original value and apply that rule only to the matching copy. The Unicode matching guide explains the same separation for other text transformations.
Do not repair existing records by blindly padding every short reference. Different reference schemes can have different lengths, and a damaged value may already be ambiguous. Identify the affected import and compare against an authorized source record before deciding how to correct it.
Also define what an optional blank answer means. It should not erase an existing customer reference unless that operation was deliberately authorized. See the missing and empty CRM value guide for partial-update behavior.
Control spreadsheet imports before opening exports
A correct CSV file can still appear wrong after a spreadsheet interprets its fields as numbers. CSV quoting protects field structure; it does not force a spreadsheet column to use the text type. Use the application’s import controls to assign the reference column as text before conversion occurs.
Microsoft’s documentation describes Excel’s automatic conversions and text-based import options. Available controls vary by version. Check the workflow your recipient actually uses, then inspect the cell’s stored value as well as its visible formatting. A custom number format can display zeros while retaining a numeric value underneath.
Do not add an apostrophe or formula wrapper to every exported reference without a documented consumer contract. Such changes alter the data other systems receive. If you need a presentation-oriented workbook, keep it separate from the raw interchange export and label its transformation.
Run a small round-trip check
Prepare synthetic cases covering 001284, an all-zero reference if permitted, a normal reference without leading zeros, an allowed letter prefix, a blank optional answer and a rejected length. Record the expected result for each. Compare the original input, serialized payload, stored destination and exported value.
Repeat the receiving team’s normal reopen and reimport path. A workflow passes only when the identifier remains usable after those steps. Record the first boundary where it changes, then fix that boundary rather than making unrelated form edits.
For submission statistics, review our Svetlik Analytics for Contact Form 7 plugin. Submission visibility complements this field-level check; it does not prove that an external CRM preserved a reference. Keep raw customer identifiers out of general analytics labels and broadly shared reports.
