# Event Lead Capture Form Verification Report

**Last Updated:** 2026-01-12

**Form Name:** Intergastra 26  
**Form GUID:** `e9d5fd47-6772-4c0a-943b-8f726afd8e4b`  
**Portal ID:** `145133546`  
**Created:** 2026-01-12T12:02:45.172Z  
**Last Updated:** 2026-01-12T12:22:00.961Z

## Executive Summary

✅ **All required fields present** (5/5)  
✅ **All optional fields present** (5/5)  
✅ **All hidden tracking fields present** (8/8)  
✅ **All critical issues fixed:**

- ✅ Phone field is now OPTIONAL
- ✅ `content` field has been added
- ✅ `sign_up_type__c` is now HIDDEN
- ✅ `hs_lead_status` is now HIDDEN

**Status:** ✅ **FORM READY FOR IMPLEMENTATION**

**Note:** Default values for tracking fields will be set in code during form submission (this is the recommended approach).

## Field Status

### ✅ Required Fields (5/5 Found)

| Field Name    | HubSpot Property   | Type             | Status   | Notes                            |
| ------------- | ------------------ | ---------------- | -------- | -------------------------------- |
| Customer Type | `customer_type__c` | dropdown         | ✅ Found | Options: Neukunde, Bestandskunde |
| First Name    | `firstname`        | single_line_text | ✅ Found | Label: "Vorname"                 |
| Last Name     | `lastname`         | single_line_text | ✅ Found | Label: "Nachname"                |
| Company       | `company`          | single_line_text | ✅ Found | Label: "Unternehmensname"        |
| Email         | `email`            | email            | ✅ Found | Label: "E-Mail"                  |

### ✅ Optional Fields (5/5 Found)

| Field Name       | HubSpot Property   | Type                | Status          | Notes                   |
| ---------------- | ------------------ | ------------------- | --------------- | ----------------------- |
| Salutation       | `salutation`       | single_line_text    | ✅ Found        | Label: "Anrede"         |
| Phone            | `phone`            | phone               | ✅ **OPTIONAL** | Label: "Telefonnummer"  |
| Position         | `jobtitle`         | single_line_text    | ✅ Found        | Label: "Jobbezeichnung" |
| Interested In    | `interested_in__c` | multiple_checkboxes | ✅ Found        | All 8 options present   |
| Additional Notes | `description`      | multi_line_text     | ✅ Found        | Label: "Beschreibung"   |

### ⚠️ Hidden Tracking Fields (7/8 Found, 1 Missing)

| Field Name   | HubSpot Property            | Type             | Status   | Visibility    | Default Value | Notes                                  |
| ------------ | --------------------------- | ---------------- | -------- | ------------- | ------------- | -------------------------------------- |
| Sign-up Type | `sign_up_type__c`           | single_line_text | ✅ Found | ✅ **HIDDEN** | Missing       | Set in code                            |
| Lead Source  | `leadsource`                | dropdown         | ✅ Found | ✅ Hidden     | Missing       | Should default to "trade fair"         |
| UTM Source   | `source__c`                 | multi_line_text  | ✅ Found | ✅ Hidden     | -             | -                                      |
| UTM Campaign | `utm_campaign__c`           | multi_line_text  | ✅ Found | ✅ Hidden     | -             | -                                      |
| UTM Medium   | `utm_medium__c`             | multi_line_text  | ✅ Found | ✅ Hidden     | Missing       | Should default to "event"              |
| Content      | `content`                   | single_line_text | ✅ Found | ✅ **HIDDEN** | Missing       | Set in code                            |
| Lead Status  | `hs_lead_status`            | radio            | ✅ Found | ✅ **HIDDEN** | Missing       | Set in code (default: "NEW")           |
| Record Type  | `record_type_id__dropdown_` | dropdown         | ✅ Found | ✅ Hidden     | Missing       | Should default to "012aa0000013oZCAAY" |

## Issues Status

### ✅ All Critical Issues Fixed

1. ✅ **Phone Field** - Now OPTIONAL (was REQUIRED)
2. ✅ **`content` Field** - Added as hidden field
3. ✅ **`sign_up_type__c`** - Now HIDDEN (was visible)
4. ✅ **`hs_lead_status`** - Now HIDDEN (was visible)

### 📝 Default Values (Handled in Code)

Default values for tracking fields will be set in the API submission code:

- `sign_up_type__c`: "Event Lead Capture"
- `leadsource`: "trade fair"
- `utm_medium__c`: "event"
- `hs_lead_status`: "NEW"
- `record_type_id__dropdown_`: "012aa0000013oZCAAY"

**Note:** Setting defaults in code is the recommended approach as it allows dynamic values based on event context.

## Field Mapping for API Submission

### Required Fields

```php
[
    'name' => 'customer_type__c',
    'value' => 'Neukunde' // or 'Bestandskunde'
],
[
    'name' => 'firstname',
    'value' => $firstName
],
[
    'name' => 'lastname',
    'value' => $lastName
],
[
    'name' => 'company',
    'value' => $company
],
[
    'name' => 'email',
    'value' => $email
],
[
    'name' => 'phone',
    'value' => $phone // Currently required, but should be optional
]
```

### Optional Fields

```php
[
    'name' => 'salutation',
    'value' => $salutation // 'Herr', 'Frau', 'Divers'
],
[
    'name' => 'jobtitle',
    'value' => $position // 'Inhaber / Geschäftsführer', 'HR / Schichtleitung', 'Mitarbeiter', 'Sonstiges'
],
[
    'name' => 'interested_in__c',
    'value' => $interestedIn // Comma-separated: 'Events,QR-Code,Schichtplanung'
],
[
    'name' => 'description',
    'value' => $additionalNotes
]
```

### Hidden Tracking Fields

```php
[
    'name' => 'sign_up_type__c',
    'value' => 'Event Lead Capture' // Set in code
],
[
    'name' => 'leadsource',
    'value' => 'trade fair' // Set in code
],
[
    'name' => 'source__c',
    'value' => $eventName // From URL parameter
],
[
    'name' => 'utm_campaign__c',
    'value' => $eventId // From URL parameter
],
[
    'name' => 'utm_medium__c',
    'value' => 'event' // Set in code
],
[
    'name' => 'content',
    'value' => $eventName // **NEEDS TO BE ADDED TO FORM**
],
[
    'name' => 'hs_lead_status',
    'value' => 'NEW' // Set in code
],
[
    'name' => 'record_type_id__dropdown_',
    'value' => '012aa0000013oZCAAY' // Set in code
]
```

## Status: ✅ READY FOR IMPLEMENTATION

All form configuration issues have been resolved. The form is ready for page implementation.

### Completed Actions

1. ✅ **Form GUID added to config** - `HUBSPOT_FORM_GUID_EVENT_LEAD_CAPTURE`
2. ✅ **Phone field changed to optional**
3. ✅ **`content` field added as hidden**
4. ✅ **`sign_up_type__c` hidden**
5. ✅ **`hs_lead_status` hidden**

### Next Steps

1. Build event lead capture page with custom HTML form
2. Implement API endpoint for form submission
3. Set default values in code during submission
4. Test form submission end-to-end

## Form Configuration Reference

**Constant Name:** `HUBSPOT_FORM_GUID_EVENT_LEAD_CAPTURE`  
**Value:** `e9d5fd47-6772-4c0a-943b-8f726afd8e4b`  
**Location:** `v2/config/hubspot-config.php`

## Related Documentation

- [Form Configuration Reference](FORM_CONFIGURATION_REFERENCE.md)
- [HubSpot API Reference](../apis/HUBSPOT_API_REFERENCE.md)
- [HubSpot Integration Guide](../../guides/HUBSPOT_INTEGRATION_GUIDE.md)
