Skip to content

Column Mapper

Each column of the file goes to a field, with the reason for every guess and a mark on the ones to check. A Vietnamese file shows its phones normalised and asks about day and month when the dates cannot tell.

On this page

Examples

A Vietnamese customer list

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

columns
SourceColumn[]
From columnsOf(table): header, index and sample values.
fields
TargetField[]
The fields of your CRM. CONTACT_FIELDS has the usual ones with English and Vietnamese synonyms.
value / onChange
ColumnMapping[]
The mapping. Start it with suggestMapping(columns, fields, { saved, locale, country }).
required
string[][]
Default[["email", "name", "firstName"]]
Groups of fields; one of each group must be mapped.
country
string
"VN" reads phones as Vietnamese numbers and shows what changed.
phoneFixes
Record<PhoneFix, number>
From validateRows: how many values each fix touched.
onCreateField
(column) => TargetField
Offers Create a field. Leave out when the person may not create fields.

Accessibility

  • Each row is a labelled combobox named after the column ("Field for Mobile"); the reason and Check this are text, not colour.
  • The required checklist is a list with done and missing in words, and the blocked Next says what is missing.
  • The day/month switch has a visible label and a preview of the first date read both ways.

When to use

When to use

  • Mapping spreadsheet columns to fields with the reason for each guess.
  • Imports that need a check on phones and day/month dates.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Column Mapper to my app and wire it to my own data.
  • I need mapping spreadsheet columns to fields with the reason for each guess. Set that up with the Knowns UI Column Mapper.
  • Which Column Mapper props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "column-mapper" }) and search_docs({ query: "column mapper" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Column Mapper, or found something off? We read every message.