# Field mapping and Participant Form

> How to map form fields to participant data and how the new Participant Form works in the Online Shop.

## Field mapping and Participant Form

## Index

- [1. Mapping fields to participant data](#h_mapeo)
- [2. Participant Form](#h_participant_form)

 

## 1. Mapping fields to participant data

For the top-level fields of a form (not nested inside a conditional section) that are not static text, the field editor includes an additional section called **"Maps to participant field"**.

![](https://media.support.lueira.com/images/714526f023ecb808560e390c1c97e908.png)

- It is a dropdown with the available participant data (for example, name, email, etc.).
- When you choose a target, the **"Answer key"** of that field is filled in automatically. You can also type that key manually if you prefer.

👉 **What is it for?** When the mapping is configured, the answer given by the customer or participant in that field can be used to automatically update the corresponding data in the **participant profile**, instead of remaining isolated only as a form answer.

**For example:** if you map a "Date of birth" field to the corresponding participant data, that information is also available in their profile, without having to enter it twice.

 

## 2. Participant Form

In addition to Check-out and Check-in (see [Link to products](lueira-guide:6e624a3f-5d94-49a6-847a-d42d69db570b?locale=en#h_vinculacion)), there is a third form role: the **Participant Form**.

The Participant Form is shown **individually for each participant** in the booking, within the purchase process itself in the Online Shop.
It is useful when you need specific data about each person who will take part in the activity and not only about the customer who buys: for example, equipment sizes, experience level, date of birth.
​

### How to link it

It is linked from the product edit window (configuration tab), in the **"Participant Form"** field ("Form shown for each participant during online booking").
​

![](https://media.support.lueira.com/images/2792e1152810cbf468b829d1148e7ad8.png)

### Current status in the Online Shop

Each participant in the session sees and fills in their own form within the purchase process.

![](https://media.support.lueira.com/images/d638565384d28e96fdb6b17bec7d45f6.png)

### Participant Form per relative in the Customer Portal

When the customer has logged in to the [Customer Portal](lueira-guide:e7157922-0f79-462f-be1f-467309f15ccf?locale=en) and the product has a Participant Form linked, it is filled in **individually for each relative** selected as a participant (instead of a single generic form), with these particularities:
​

![](https://media.support.lueira.com/images/03e404802931823f29926f5022b698dc.png)

- The form appears **pre-filled** with the data already saved for that relative (first name, surname, phone, email, date of birth...), thanks to the [field mapping](#h_mapeo).
- If a new relative is added during the purchase of a product with a Participant Form, that form opens directly (instead of the generic "Add relative" form): when it is submitted, the relative is created with the data entered.
- You cannot move forward in the booking until the Participant Form of **each** selected relative is complete and valid.
- When the purchase is completed, the mapped answers for each relative also update their relative profile in the Customer Portal (just as happens with the internal participant profile).

### Where the answers are saved

Each Participant Form answer is saved associated with the corresponding participant (relative), just as with a Check-in.

You can view it from the customer's profile, in the participants section:
​

![](https://media.support.lueira.com/images/86b2421439908d26d6acaaf79e76ef59.png)

![](https://media.support.lueira.com/images/9cc255cda4ef24f2c6adf231a0110fe4.png)

If you have also configured the [mapping of fields to participant data](#h_mapeo), the mapped answers also directly update the corresponding data in the participant's profile.

Source: https://help.lueira.com/en/articles/mapeo-de-campos-y-formulario-de-participante
