# Demo Booking Form Field Mappings

**Last Updated:** 2026-03-13

Complete reference for field mappings between HTML form, Salesforce field IDs, HubSpot form fields, and HubSpot Contact properties for the demo booking modal form.

## Form Details

- **Form File:** `v2/base/include_form-hs.php`
- **Form Handler:** `html/form-hs.php`
- **HubSpot Form GUID:** `9b93ee13-fad2-4ce8-8ea2-4e588932af2a` (HUBSPOT_FORM_GUID_LEAD_CAPTURE)
- **Form Name:** Free Trial
- **Portal ID:** `145133546`
- **Region:** `eu1`

## Field Mapping Reference

### Standard Contact Fields

| HTML Field Name | Salesforce ID | HubSpot Form Field | HubSpot Property | Type | Required | Notes |
|----------------|---------------|-------------------|------------------|------|----------|-------|
| `company` | - | `company` | `company` | single_line_text | Yes | Unternehmensname |
| `first_name` | - | `firstname` | `firstname` | single_line_text | Yes | Vorname |
| `last_name` | - | `lastname` | `lastname` | single_line_text | Yes | Nachname |
| `email` | - | `email` | `email` | email | Yes | E-Mail Adresse |
| `mobile` / `fullNumber` | - | `phone` | `phone` / `mobilephone` | phone | Yes | Telefonnummer |

### "Weitere Angaben zu deinem Unternehmen" Section

| HTML Field Name | Salesforce ID | HubSpot Form Field | HubSpot Property | Type | Required | Status |
|----------------|---------------|-------------------|------------------|------|----------|--------|
| ~~`00N7Q00000JqXu7`~~ | ~~`00N7Q00000JqXu7`~~ | ~~`anzahl_standorte`~~ | ~~`anzahl_standorte__c`~~ | ~~dropdown~~ | No | **REMOVED** |
| `rolle_im_betrieb` | - | `rolle_im_betrieb__c` | `rolle_im_betrieb__c` | dropdown | No | **NEW** |
| `00N7Q00000JqXuC` | `00N7Q00000JqXuC` | `anzahl_mitarbeiter` | `anzahl_mitarbeiter__c` | dropdown | No | **UPDATED** |
| `00Naa000000Grzd` | `00Naa000000Grzd` | `industry` | `industry__c` | dropdown | No | Unchanged |
| `woher_erfahren` | - | `woher_erfahren` | `woher_erfahren` | dropdown | No | **UPDATED** |

## Field Details

### Rolle im Betrieb (NEW)

**Property:** `rolle_im_betrieb__c`  
**Label:** Rolle im Betrieb  
**Type:** enumeration (select)  
**Group:** contactinformation  
**Options:**
1. Inhaber / Geschäftsführung
2. HR / Schichtleitung
3. Mitarbeiter
4. Privatperson
5. Steuerberater

**Created:** 2026-03-13

### Anzahl Mitarbeitende (UPDATED)

**Property:** `anzahl_mitarbeiter__c` (form handler) / `anzahl_mitarbeiter` (form definition)  
**Label:** Anzahl Mitarbeiter  
**Type:** string (text) - dropdown options defined at form level  
**Group:** salesforceinformation  

**Old Options:**
- 0-15 Mitarbeitende
- 16-50 Mitarbeitende
- 51-200 Mitarbeitende
- Mehr als 200 Mitarbeitende
- Keine Angabe

**New Options:**
- 0-15
- 16-70
- 71-200
- 200+
- Keine Angabe (if applicable)

**Note:** Form uses dropdown but property is text field. Options are defined at form level.

### In welcher Branche bist du tätig? (UNCHANGED)

**Property:** `industry__c` (form handler) / `industry` (form definition)  
**Label:** Branche  
**Type:** enumeration (select)  
**Options:** 189 industry options (unchanged)

### Wie hast du von uns erfahren? (UPDATED)

**Property:** `woher_erfahren`  
**Label:** Woher hast du von uns erfahren?  
**Type:** enumeration (select)  
**Group:** contactinformation  

**Old Options (9):**
1. Von einem Freund / Bekannten
2. Google / Bing
3. Facebook / Instagram
4. LinkedIn
5. YouTube
6. TikTok
7. App Store / Google Play
8. ChatGPT / KI-Tools
9. Sonstiges

**New Options (10):**
1. Von einem Freund / Bekannten
2. Google / Bing
3. Facebook / Instagram
4. LinkedIn
5. YouTube
6. TikTok
7. App Store / Google Play
8. ChatGPT / KI-Tools
9. Messe / Veranstaltung (NEW)
10. Sonstiges

**Updated:** 2026-03-13

### Anzahl Standorte (REMOVED)

**Property:** `anzahl_standorte__c` (form handler) / `anzahl_standorte` (form definition)  
**Label:** Anzahl Standorte (David)  
**Type:** string (text)  
**Group:** sales_properties  
**Status:** Field removed from form and form definition (2026-03-13)

**Old Options (if dropdown was used):**
- Ein Standort
- Zwei Standorte
- 3-5 Standorte
- Mehr als 5 Standorte
- Keine Angabe

## Form Handler Mappings

The form handler (`html/form-hs.php`) maps Salesforce field IDs to HubSpot properties:

```php
// Removed field
// 'anzahl_standorte__c' => $_POST['00N7Q00000JqXu7'] ?? ''

// New field (to be added)
'rolle_im_betrieb__c' => $_POST['rolle_im_betrieb'] ?? ''

// Updated fields
'anzahl_mitarbeiter__c' => $_POST['00N7Q00000JqXuC'] ?? ''
'industry__c' => $_POST['00Naa000000Grzd'] ?? ''
'woher_erfahren' => $_POST['woher_erfahren'] ?? ''
```

## Notes

1. **Property Name Discrepancy:** The form definition uses `anzahl_mitarbeiter` and `industry` (without `__c`), but the form handler uses `anzahl_mitarbeiter__c` and `industry__c`. Both properties exist in HubSpot.

2. **Dropdown vs Text:** `anzahl_mitarbeiter` property is a text field, but the form uses it as a dropdown. Options are defined at the form level, not the property level.

3. **Salesforce Field IDs:** The HTML form uses Salesforce field IDs (`00N7Q00000JqXu7`, etc.) for some fields, which are then mapped to HubSpot properties in the form handler.

4. **Field Order:** Fields appear in "Weitere Angaben zu deinem Unternehmen" section in this order:
   1. Rolle im Betrieb (NEW)
   2. Anzahl Mitarbeitende
   3. In welcher Branche bist du tätig?
   4. Wie hast du von uns erfahren?

## Related Documentation

- `docs/systems/forms/FORM_CONFIGURATION_REFERENCE.md` - General form configuration
- `docs/guides/HUBSPOT_FORM_FIELD_CONFIGURATION.md` - HubSpot form field setup
- `v2/scripts/hubspot/demo-form-backup-*.json` - Form definition backups
- `v2/scripts/hubspot/demo-form-investigation-*.json` - Form investigation results
