Mapping a source's fields

Match the answers a form or tool sends to your lead fields on the Transform fields tab, create missing fields, and fix unmapped warnings.

In plain words: When a form or tool sends you a lead, it sends a list of answers with its own names, such as "Your budget". Mapping tells Lead which of your lead fields each answer belongs in. Without a mapping, an answer is saved with the lead as raw data, but you cannot filter, sort or report on it. Read this page when a source shows "fields not mapped", or when leads arrive with empty fields. New to the words lead, source and custom field? See Lead basics: words to know.

Where to find it: Lead > Settings > Lead sources > Source integrations > click a source > tab Transform fields. Who can use it: People who can manage the lead service. Other people can open the tab but cannot change it.

Before you start

  • Connect the source first: Connecting sources.

  • Send one real test entry from the form or tool. The tab shows the answers Lead has actually received, so it needs one to work with.

  • If you need a new lead field, you can create it while you map (see "Create a lead field while you map"). To plan fields in advance, see Custom fields.

What the tab shows

The left side lists Field mappings. Each row points from an incoming answer to a lead field. The right side, Destination fields, lists your lead fields. It shows how many are mapped, and has a search box and a type filter.

Transform fields tab of the Newsletter signup source with the Pick field button

Along the bottom:

  • Auto Map Fields matches incoming answers to lead fields with the same or a similar name.

  • Validate checks your mappings and lists problems.

  • Save keeps your changes. It turns on only after you change something.

Answers the sender has sent but you have not mapped yet appear as unmapped rows at the end of the same list. Each has a spot that says Drag a field here.

Choose how unmapped answers are handled

At the top, Incoming fields has a switch with two choices:

Choice

What happens

Autofill (the default)

Any incoming answer whose name matches a lead field fills that field on its own. Your own mappings win when both apply.

Selective

Only the answers you map are written to lead fields.

With either choice, answers you have not mapped stay with the lead as raw data.

Pick Autofill when the sender already uses names like name, email and phone. Pick Selective when you want full control, or when the sender uses names that happen to match a different field.

Map the answers

  1. Open the source and click Transform fields.

  2. Click Auto Map Fields. A message tells you how many fields were mapped, or "No new matches found".

  3. Check each row. To change one, click the row. A panel opens with the Source (the incoming answer), the Destination (your lead field) and more options.

  4. To map an answer that has no row yet, click its unmapped row, or click Pick field. In Pick fields to map, tick the answers you want and click the Add button. You can also type a key the sender uses in Add a custom payload keyโ€ฆ.

  5. For each new row, choose the lead field it belongs to.

  6. Click Validate. A message says "Looks good" when there is nothing to fix. Otherwise a list shows what to fix.

  7. Click Save. A message says "Transform saved".

  8. Send another test entry and open the new lead to check that every field is filled.

Tip: Always send a fresh test after you save. A mapping that looks right can still give an empty field if the sender's name has a different spelling, and a quick check catches it.

Changes affect new leads only. Leads you already have keep what they were saved with.

Remove or clear a mapping

On a row, the small icons let you clear the destination (the row stays as an unmapped row) or remove the mapping entirely. Click Save afterwards.

Change a value on the way in

Open a mapping row to see two optional tools.

Transformer (a formula)

A transformer changes the value before it is saved. It is written like an Excel formula. Use ${value} for the answer being mapped, ${field} for another incoming answer, and ${now} for the current time. You can use IF, CONCAT, UPPER, SUM and ROUND, and +, -, ร—, รท.

Examples:

  • UPPER(${value}) saves "vip" as "VIP".

  • CONCAT(${value}, " lead") saves "Webinar" as "Webinar lead".

Plain text with no formula is saved as it is. A small badge on the row shows that a transformer is set.

Value mapping

A value mapping translates one value into another. You need it when the lead field is a dropdown that only accepts its own options.

Example: your form sends "Under 1000", "1000 to 5000" and "Over 5000", and your lead field Budget has the options Small, Medium and Large. In the row, click Add value mapping, type each incoming value, and pick the option for it. Auto-match fills in the obvious pairs. Values with no match are left empty on the lead, so add a pair for every value the form can send.

Add extra field

Add extra field creates a value that does not come from the sender. Give it a Display name and a Code, then pick the Kind:

  • Static value: the same value on every lead from this source, such as "Website".

  • Formula: a value worked out with a formula, using other incoming answers.

An extra field is mapped to a lead field like any other row.

Create a lead field while you map

If no lead field fits, you do not need to leave the tab.

  1. Find the unmapped row for the answer, or open the Destination fields panel.

  2. Click + New field. It sits at the right of an unmapped row and under the Destination fields list.

  3. Choose the kind of field. Global Field can be used by every service. Service Field can be used by services of the same kind. Internal Field lives only on this service.

  4. A form opens with the Label, Code and Type filled in from the answer. A note says "From incoming field". Change anything you want, then save.

  5. A message says "Field created and mapped. Save to apply." Click Save on the tab.

If the question has a fixed list of answers, as most choice questions in ad forms do, the new field is a dropdown with those answers. Other answers become a text field.

Transform fields tab with an unmapped row for "Your budget" showing its + New field button

Worked example

You run a Meta Instant Form with three questions: "Full name", "Work email" and "Your budget" (choices: Under 1000, 1000 to 5000, Over 5000). The source in Lead has Autofill on.

  1. You submit one test entry. Lead receives three answers.

  2. You open the source, then Transform fields. The source list says "1 field not mapped", because "Full name" and "Work email" matched your Name and Email fields, and "Your budget" did not.

  3. In the unmapped "Your budget" row, you click + New field and choose Service Field.

  4. The form opens with the Label "Your budget" and a dropdown Type with your three answers. You save it.

  5. The row now points to the new field. You click Save.

  6. You send another test entry. The new lead shows the budget in its own field, and you can filter your lead list by it.

Leads that arrived before the change keep their budget as raw data only.

What happens to values Lead does not recognise

  • Webhooks and forms: the lead is saved. The one field with the unrecognised value is left empty.

  • Spreadsheet imports: that row is rejected, and shown as a problem on the Review step. See Importing leads from a spreadsheet.

The import's Map fields step uses this same mapping screen. There you save by clicking Continue to review.

Understand the warnings

Message

What it means

What to do

N fields not mapped on the source list

The sender sends answers that have no lead field. They are saved as raw data.

Map them, or create a field with + New field.

No fields transformed on the source list

The source has no mapping at all.

Click Auto Map Fields, then Save.

A required lead field is not mapped

One of your required lead fields has no incoming answer. This is a warning, not an error.

Map it if the sender provides it. Otherwise ignore it.

"Type mismatch"

The incoming answer and the lead field are different types, such as text into a number.

Add a transformer or a value mapping.

"incoming value(s) have no mapping"

The lead field is a dropdown and some incoming values have no matching option.

Add a value mapping for each value.

A lead field "is mapped" more than once

Two rows write to the same field.

Remove one of the rows.

Troubleshooting

Problem

Why it happens

What to do

The tab lists no incoming answers

Lead has not received an entry from this sender yet

Send one real test entry, then reopen the tab. Or use Pick field and type the key.

Save is greyed out

Nothing has changed since the last save, or you cannot manage the service

Make a change. Ask a service manager if you cannot edit.

A field is mapped but the lead's field is empty

The sender spells the answer differently from the row, or the value is not one of the dropdown options

Check the answer's exact name in Pick field. Add a value mapping for dropdowns.

+ New field is missing

You do not have rights to create fields on this service

Ask a service manager.

An ad form question does not show up

AdManager has not loaded the form's questions yet

In AdManager, use Refresh form details in the form's menu.